Updating branch refs/heads/master to 89b2e5ddd1467cf5ed62c7d1e376ef07109c9f92 (commit) from cdea35f8845595383d55ccbe89e2a9cb3b755d21 (commit)
commit 89b2e5ddd1467cf5ed62c7d1e376ef07109c9f92 Author: Nick Schermer <n...@xfce.org> Date: Fri Dec 7 23:31:46 2012 +0100 Make registry dump a bit smaller. tumblerd/tumbler-registry.c | 54 +++++++++++------------------------------- 1 files changed, 14 insertions(+), 40 deletions(-) diff --git a/tumblerd/tumbler-registry.c b/tumblerd/tumbler-registry.c index 37c0e67..fc4a513 100644 --- a/tumblerd/tumbler-registry.c +++ b/tumblerd/tumbler-registry.c @@ -33,16 +33,16 @@ -static void tumbler_registry_finalize (GObject *object); -static void tumbler_registry_remove_thumbnailer (const gchar *key, - GList **list, - TumblerThumbnailer *thumbnailer); -static void tumbler_registry_list_free (gpointer data); -static GList *tumbler_registry_get_thumbnailers_internal (TumblerRegistry *registry); -static gint tumbler_registry_compare (TumblerThumbnailer *a, - TumblerThumbnailer *b); -TumblerThumbnailer *tumbler_registry_lookup (TumblerRegistry *registry, - const gchar *hash_key); +static void tumbler_registry_finalize (GObject *object); +static void tumbler_registry_remove_thumbnailer (const gchar *key, + GList **list, + TumblerThumbnailer *thumbnailer); +static void tumbler_registry_list_free (gpointer data); +static GList *tumbler_registry_get_thumbnailers_internal (TumblerRegistry *registry); +static gint tumbler_registry_compare (TumblerThumbnailer *a, + TumblerThumbnailer *b); +static TumblerThumbnailer *tumbler_registry_lookup (TumblerRegistry *registry, + const gchar *hash_key); @@ -125,36 +125,10 @@ tumbler_registry_finalize (GObject *object) static void dump_registry (TumblerRegistry *registry) { - TumblerThumbnailer *thumbnailer; - GHashTableIter iter; - const gchar *hash_key; - GList **thumbnailers; - GList *lp; - g_print ("Registry:\n"); - - g_print (" Preferred Thumbnailers:\n"); - g_hash_table_iter_init (&iter, registry->preferred_thumbnailers); - while (g_hash_table_iter_next (&iter, (gpointer) &hash_key, (gpointer) &thumbnailer)) - { - g_print (" %s: %s\n", hash_key, - tumbler_specialized_thumbnailer_get_name (TUMBLER_SPECIALIZED_THUMBNAILER (thumbnailer))); - } - - g_print (" Registry Thumbnailers:\n"); - g_hash_table_iter_init (&iter, registry->thumbnailers); - while (g_hash_table_iter_next (&iter, (gpointer) &hash_key, (gpointer) &thumbnailers)) - { - for (lp = *thumbnailers; lp != NULL; lp = lp->next) - { - if (TUMBLER_IS_SPECIALIZED_THUMBNAILER (lp->data)) - { - g_print (" %s: %s\n", - hash_key, tumbler_specialized_thumbnailer_get_name (lp->data)); - } - } - } - + g_print (" Preferred Thumbnailers: %d\n", + g_hash_table_size (registry->preferred_thumbnailers)); + g_print (" Registry Thumbnailers: %d\n",g_hash_table_size (registry->thumbnailers)); g_print ("\n"); } #endif @@ -286,7 +260,7 @@ tumbler_registry_get_thumbnailers_internal (TumblerRegistry *registry) -TumblerThumbnailer * +static TumblerThumbnailer * tumbler_registry_lookup (TumblerRegistry *registry, const gchar *hash_key) { _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits