diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2009-05-19 01:15:44 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2009-05-19 01:15:44 +0200 |
commit | c22081e3281b587fbeb920030705ed4ef58e960b (patch) | |
tree | 07edebfa644ed87af53f2e65ecdbccf0e0f294e4 /.gitignore | |
parent | a66781a82678305cee2566f72cb0ea2c34667871 (diff) | |
download | tumbler-c22081e3281b587fbeb920030705ed4ef58e960b.tar.gz |
Implement thumbnailer management in TumblerRegistry.
Use a (gchar *) to (GList **) hash table for managing thumbnailers in
TumblerRegistry. For each so-called hash key (a combination of an URI
scheme and a MIME type, e.g. "file-image/png") we store a list of
registered thumbnailers. Only the first thumbnailer in this list will
ever be used. The others can move forward in the list when a thumbnailer
is unregistered.
The order in which thumbnailers are inserted into a list is defined as
follows:
- thumbnailers registered dynamically over D-Bus go before anything
else. The thumbnailer registered latest goes first.
- specialized thumbnailers with most recent service files go first.
- built-in thumbnailers are always at the end of the list in the
order they were added to the registry.
Connect to the new "unregister" signal of all TumblerThumbnailers to
remove them when required. The signal is only emitted by
TumblerSpecializedThumbnailers when their proxy is destroyed.
TumblerSpecializedThumbnailer has two new properties: "foreign" and
"modified". Foreign thumbnailers are those registered dynamically over
D-Bus (using org.freedesktop.thumbnailer.Manager.Register()). The
"modified" property represents the timestamp of when the thumbnailer's
.service file was last modified. It is 0 for foreign thumbnailers.
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..103637f --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +*.o +*.service +Makefile.in +Makefile +aclocal.m4 +autom4te.cache +compile +config.guess +config.h +config.h.in +config.log +config.status +config.sub +configure +configure.in +depcomp +install-sh +intltool-extract.in +intltool-merge.in +intltool-update.in +libtool +ltmain.sh +missing +mkinstalldirs +Makefile.in.in +POTFILES +stamp-it +stamp-h1 +.deps +.libs +stamp-*.h +tumbler +tumbler-manager-dbus-bindings.h +tumbler-marshal.c +tumbler-marshal.h +*.swp +commit-msg |