diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-12-29 10:48:14 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-29 13:09:43 +0100 |
commit | 7fdab65f7a2144a7cae4d49bea13cea3644dfc3c (patch) | |
tree | 8bf0045d59c05be0f26d78ffb4756e4e9ddfa997 /tumbler/tumbler-thumbnailer.c | |
parent | 270289b3a3f2f9ac7891f26135bae6d5e574c868 (diff) | |
download | tumbler-7fdab65f7a2144a7cae4d49bea13cea3644dfc3c.tar.gz |
desktop-thumbnailer: Allow to override configuration in desktop files
The "X-Tumbler Settings" group is searched in each desktop file with the
same keys as in `tumbler.rc`, where the default configuration is now.
Closes #52.
Diffstat (limited to 'tumbler/tumbler-thumbnailer.c')
-rw-r--r-- | tumbler/tumbler-thumbnailer.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tumbler/tumbler-thumbnailer.c b/tumbler/tumbler-thumbnailer.c index 5074d35..f027946 100644 --- a/tumbler/tumbler-thumbnailer.c +++ b/tumbler/tumbler-thumbnailer.c @@ -22,9 +22,8 @@ #include <config.h> #endif -#include <tumbler/tumbler-marshal.h> -#include <tumbler/tumbler-file-info.h> #include <tumbler/tumbler-thumbnailer.h> +#include <tumbler/tumbler.h> @@ -282,15 +281,6 @@ tumbler_thumbnailer_supports_hash_key (TumblerThumbnailer *thumbnailer, -static gpointer -tumbler_thumbnailer_object_ref (gconstpointer src, - gpointer data) -{ - return g_object_ref ((gpointer) src); -} - - - GList ** tumbler_thumbnailer_array_copy (GList **thumbnailers, guint length) @@ -303,7 +293,7 @@ tumbler_thumbnailer_array_copy (GList **thumbnailers, copy = g_new0 (GList *, length + 1); for (n = 0; n < length; ++n) - copy[n] = g_list_copy_deep (thumbnailers[n], tumbler_thumbnailer_object_ref, NULL); + copy[n] = g_list_copy_deep (thumbnailers[n], tumbler_util_object_ref, NULL); copy[n] = NULL; |