[totem] main: Use recently added grl_deinit()



commit 87ea7277847f26c984db9696d4def3161310263f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 10 12:14:32 2014 +0100

    main: Use recently added grl_deinit()
    
    Instead of unloading the plugins and sources ourselves.

 src/totem-grilo.c |   20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index d42ae66..83213b4 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1337,23 +1337,6 @@ load_grilo_plugins (TotemGrilo *self)
        }
 }
 
-static void
-unload_grilo_plugins (TotemGrilo *self)
-{
-       GrlRegistry *registry;
-       GList *l, *plugins;
-
-       registry = grl_registry_get_default ();
-       plugins = grl_registry_get_plugins (registry, TRUE);
-
-       for (l = plugins; l != NULL; l = l->next) {
-               GrlPlugin *plugin = l->data;
-               grl_registry_unload_plugin (registry, grl_plugin_get_id (plugin), NULL);
-       }
-
-       g_list_free (plugins);
-}
-
 static gboolean
 adjustment_over_limit (GtkAdjustment *adjustment)
 {
@@ -2203,8 +2186,7 @@ totem_grilo_finalize (GObject *object)
 
        g_clear_pointer (&self->priv->metadata_keys, g_list_free);
 
-       /* Shutdown all plugins */
-       unload_grilo_plugins (self);
+       grl_deinit ();
 
        totem_grilo_clear_icons ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]