summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2015-12-10 11:30:57 +0000
committerJuan A. Suarez Romero <jasuarez@igalia.com>2015-12-15 16:27:03 +0000
commit697caae6e6ac6df2914ca05d78f6e909cb3c7abd (patch)
tree47b996b3573af62542c04f96bb3c98fbe0c876dc /help
parentb4ec244db7ae010310a76cf0b8b7900020aec54b (diff)
downloadgrilo-plugins-697caae6e6ac6df2914ca05d78f6e909cb3c7abd.tar.gz
all: explicitly activate plugins
Use the new API to explicitly activate the plugins when required. https://bugzilla.gnome.org/show_bug.cgi?id=759295
Diffstat (limited to 'help')
-rw-r--r--help/examples/example-tmdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/help/examples/example-tmdb.c b/help/examples/example-tmdb.c
index 9338698..7568948 100644
--- a/help/examples/example-tmdb.c
+++ b/help/examples/example-tmdb.c
@@ -67,14 +67,15 @@ int main (int argc, char *argv[])
GrlConfig *config = grl_config_new (TMDB_PLUGIN_ID, NULL);
grl_config_set_api_key (config, TMDB_KEY);
grl_registry_add_config (reg, config, NULL);
+ grl_registry_load_all_plugins (reg, FALSE, NULL);
/*
* Get the plugin:
*/
GError *error = NULL;
- gboolean plugin_loaded =
- grl_registry_load_plugin_by_id (reg, TMDB_PLUGIN_ID, &error);
- g_assert (plugin_loaded);
+ gboolean plugin_activated =
+ grl_registry_activate_plugin_by_id (reg, TMDB_PLUGIN_ID, &error);
+ g_assert (plugin_activated);
g_assert_no_error (error);
/*