Commit Graph

2735 Commits

Author SHA1 Message Date
Ryan Lortie
2737ab3201 substantially rework file monitors
Remove all event merging and dispatch logic from GFileMonitor.  The only
implementation of GFileMonitor outside of glib is in gvfs and it already
does these things properly.

Get rid of GLocalDirectoryMonitor.  We will use a single class,
GLocalFileMonitor, for both directory and file monitoring.  This will
prevent every single backend from having to create two objects
separately (eg: ginotifydirectorymonitor.c and ginotifyfilemonitor.c).

Introduce GFileMonitorSource as a thread-safe cross-context dispatch
mechanism.  Put it in GLocalFileMonitor.  All backends will be expected
to dispatch via the source and not touch the GFileMonitor object at all
from the worker thread.

Remove all construct properties from GLocalFileMonitor and remove the
"context" construct property from GFileMonitor.  All backends must now
get the information about what file to monitor from the ->start() call
which is mandatory to implement.

Remove the implementation of rate limiting in GFileMonitor and add an
implementation in GLocalFileMonitor.  gvfs never did anything with this
anyway, but if it wanted to, it would have to implement it for itself.
This was done in order to get the rate_limit field into the
GFileMonitorSource so that it could be safely accessed from the worker
thread.

Expose g_local_file_is_remote() internally for NFS detection.

With the "is_remote" functionality exposed, we can now move all
functions for creating local file monitors to a proper location in
glocalfilemonitor.c

Port the inotify backend to adjust to the changes above.  None of the
other backends are ported yet.  Those will come in future commits.
2015-03-20 11:59:47 -04:00
Jiri Grönroos
6a86390555 Finnish translation update 2015-03-20 17:43:30 +02:00
Kjartan Maraas
ea512bf1e6 Updated Norwegian bokmål translation. 2015-03-19 21:16:10 +01:00
Yosef Or Boczko
0fee64032e Updated Hebrew translation 2015-03-17 12:27:19 +02:00
Stas Solovey
fdc7cd6dd3 Updated Russian translation 2015-03-16 10:01:52 +00:00
Matej Urbančič
e6de48e680 Updated Slovenian translation 2015-03-15 14:31:13 +01:00
Claude Paroz
e2d05dfe98 Updated French translation 2015-03-14 09:34:57 +01:00
A S Alam
7ed2928054 Translation pa updated for Gnome 2015-03-13 22:50:42 -05:00
Samir Ribic
7a3c8e900a Updated Bosnian translation 2015-03-13 20:57:49 +00:00
Sebastian Rasmussen
3a2c358508 Updated Swedish translation 2015-03-13 17:16:00 +00:00
Rūdolfs Mazurs
3626e1426d Updated Latvian translation 2015-03-12 21:54:49 +02:00
Changwoo Ryu
5c825d3272 Updated Korean translation 2015-03-12 02:51:35 +09:00
Tom Tryfonidis
8668631baa Updated Greek translation 2015-03-11 13:12:14 +00:00
Jordi Mas
b4d6a5fb18 Update Catalan translation 2015-03-10 17:44:19 -04:00
Benjamin Steinwender
a866155e8e Updated German translation 2015-03-10 20:56:05 +00:00
Piotr Drąg
f6ccb19e1a Updated POTFILES.in 2015-03-10 19:50:30 +01:00
Alexander Shopov
e83f9e5254 Updated Bulgarian translation 2015-03-10 10:35:24 +02:00
Dušan Kazik
a065c7c5d4 Updated Slovak translation 2015-03-09 11:48:33 +00:00
Trần Ngọc Quân
ec9f16846f Updated Vietnamese translation
Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
2015-03-09 13:26:18 +07:00
Daniel Mustieles
dfb9f09c28 Updated Spanish translation 2015-03-08 21:25:11 +01:00
Aurimas Černius
81473a0fff Updated Lithuanian translation 2015-03-08 20:26:36 +02:00
Baurzhan Muftakhidinov
65efd817b2 Updated Kazakh translation 2015-03-08 18:06:01 +00:00
Balázs Úr
1e317331e4 Updated Hungarian translation 2015-03-08 17:38:41 +00:00
Milo Casagrande
3deaf41e87 Updated Italian translation 2015-03-08 15:32:40 +00:00
Piotr Drąg
4a7e68fd73 Updated Polish translation 2015-03-08 15:42:16 +01:00
Piotr Drąg
d4122b954f Updated POTFILES.in 2015-03-08 15:39:02 +01:00
Changwoo Ryu
fdcfe58401 Updated Korean translation 2015-03-08 03:31:59 +09:00
Мирослав Николић
7f159f13dc Updated Serbian translation 2015-03-03 20:05:47 +01:00
Marek Černocký
ad66ec82ee Updated Czech translation 2015-03-02 21:52:32 +01:00
Piotr Drąg
220f7754c4 Updated Polish translation 2015-03-02 20:26:45 +01:00
Aurimas Černius
8bbeb6fd2f Updated Lithuanian translation 2015-02-28 21:25:35 +02:00
Dušan Kazik
f15f860ed9 Updated Slovak translation 2015-02-28 12:53:36 +00:00
Alexandre Franke
99232046d6 Updated French translation 2015-02-24 00:42:43 +00:00
Chao-Hsiung Liao
9cee2e6a72 Updated Chinese (Taiwan) translation 2015-02-21 11:09:48 +00:00
Fran Dieguez
0d27b2e4e2 Updated Galician translations 2015-02-19 11:00:05 +01:00
Piotr Drąg
03de825c7e Updated POTFILES.in 2015-02-18 13:43:12 +01:00
Milo Casagrande
6b33ec39ad Updated Italian translation 2015-02-18 08:12:00 +00:00
Milo Casagrande
62f7ea8191 Updated Italian translation 2015-02-17 13:32:06 +00:00
Matej Urbančič
c59d195dd2 Updated Slovenian translation 2015-02-15 21:11:57 +01:00
Sebastian Rasmussen
f7d6c3ba90 Updated Swedish translation 2015-02-15 19:49:43 +00:00
Ivan Komaritsyn
0adb8e9da5 Updated Russian translation 2015-02-15 09:10:44 +03:00
Efstathios Iosifidis
ab8493fa90 Updated Greek translation 2015-02-14 17:09:14 +02:00
Kjartan Maraas
977be8c149 Updated Norwegian bokmål translation. 2015-02-12 01:27:02 +01:00
Inaki Larranaga Murgoitio
ee245b57ff Updated Basque language 2015-01-17 17:14:46 +01:00
Rafael Ferreira
12b5eff6dc Updated Brazilian Portuguese translation 2015-01-09 01:49:13 +00:00
Daniel Mustieles
388e0d576f Updated Spanish translation 2014-12-17 12:31:29 +01:00
Shankar Prasad
b6aa0c4890 Updated Kannada translation 2014-12-12 11:55:07 +00:00
Yosef Or Boczko
45e4ea75da Updated Hebrew translation 2014-12-12 12:36:27 +02:00
Sweta Kothari
dd5fd6902d Updated gujarati translations 2014-12-11 09:30:23 +05:30
Muhammet Kara
fbf0b2e19c Updated Turkish translation 2014-12-10 22:04:49 +00:00