mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
2737ab3201
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. |
||
---|---|---|
.. | ||
.gitignore | ||
af.po | ||
am.po | ||
an.po | ||
ar.po | ||
as.po | ||
ast.po | ||
az.po | ||
be.po | ||
be@latin.po | ||
bg.po | ||
bn_IN.po | ||
bn.po | ||
bs.po | ||
ca.po | ||
ca@valencia.po | ||
ChangeLog | ||
cs.po | ||
cy.po | ||
da.po | ||
de.po | ||
dz.po | ||
el.po | ||
en_CA.po | ||
en_GB.po | ||
en@shaw.po | ||
eo.po | ||
es.po | ||
et.po | ||
eu.po | ||
fa.po | ||
fi.po | ||
fr.po | ||
ga.po | ||
gl.po | ||
gu.po | ||
he.po | ||
hi.po | ||
hr.po | ||
hu.po | ||
hy.po | ||
id.po | ||
is.po | ||
it.po | ||
ja.po | ||
ka.po | ||
kk.po | ||
kn.po | ||
ko.po | ||
ku.po | ||
LINGUAS | ||
lt.po | ||
lv.po | ||
mai.po | ||
Makefile.in.in | ||
mg.po | ||
mk.po | ||
ml.po | ||
mn.po | ||
mr.po | ||
ms.po | ||
nb.po | ||
nds.po | ||
ne.po | ||
nl.po | ||
nn.po | ||
oc.po | ||
or.po | ||
pa.po | ||
pl.po | ||
po2tbl.sed.in | ||
POTFILES.in | ||
POTFILES.skip | ||
ps.po | ||
pt_BR.po | ||
pt.po | ||
README.translators | ||
ro.po | ||
ru.po | ||
rw.po | ||
si.po | ||
sk.po | ||
sl.po | ||
sq.po | ||
sr.po | ||
sr@ije.po | ||
sr@latin.po | ||
sv.po | ||
ta.po | ||
te.po | ||
tg.po | ||
th.po | ||
tl.po | ||
tr.po | ||
tt.po | ||
ug.po | ||
uk.po | ||
vi.po | ||
wa.po | ||
xh.po | ||
yi.po | ||
zh_CN.po | ||
zh_HK.po | ||
zh_TW.po |
All the .po files are now in UTF-8! For information on editing UTF-8 files on Unix, see <http://www.cl.cam.ac.uk/~mgk25/unicode.html> If you just want to convert it back to your native encoding to edit and then convert again to UTF-8 to commit, please see the scripts in gnome-i18n/UTF-8, for example export ENCODING_TO=ISO-8859-15 utftopo fi.po emacs fi.po potoutf.sh fi.po cvs commit fi.po Alternatively, you can use the gettext package (>= 0.11) to convert your translation to and from your native encoding: msgconv -t ISO-8859-15 fi.po > fi.native.po emacs fi.native.po msgconv -t UTF-8 fi.native.po > fi.po cvs commit fi.po If you need help with this, ask, but please don't commit non-UTF-8 files here.