From 5e8ca7dcb368fee70ae89ee13da99cfda027c5bd Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 17 Dec 2015 12:34:48 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panels/background/cc-background-grilo-miner.c b/panels/background/cc-background-grilo-miner.c index 720244173..4b6d7cbaf 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);