[gnome-control-center] background: Port to new grilo 0.3.0 API



commit 5e8ca7dcb368fee70ae89ee13da99cfda027c5bd
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Dec 17 12:34:48 2015 +0100

    background: Port to new grilo 0.3.0 API
    
    And fix the "fix" in commit 54d0cef51f37cc155bc956c91918b772aaf550f6
    which would always fail to activate the Flickr plugin as it wasn't
    loaded.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759585

 panels/background/cc-background-grilo-miner.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-grilo-miner.c b/panels/background/cc-background-grilo-miner.c
index 7202441..4b6d7cb 100644
--- a/panels/background/cc-background-grilo-miner.c
+++ b/panels/background/cc-background-grilo-miner.c
@@ -308,7 +308,8 @@ cc_background_grilo_miner_class_init (CcBackgroundGriloMinerClass *klass)
   registry = grl_registry_get_default ();
 
   error = NULL;
-  if (!grl_registry_activate_plugin_by_id (registry, "grl-flickr", &error))
+  if (!grl_registry_load_all_plugins (registry, FALSE, &error) ||
+      !grl_registry_activate_plugin_by_id (registry, "grl-flickr", &error))
     {
       g_warning ("%s", error->message);
       g_error_free (error);


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