summaryrefslogtreecommitdiff
path: root/src/totem-grilo.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-08-17 19:45:36 +0200
committerBastien Nocera <hadess@hadess.net>2014-08-17 21:19:03 +0200
commit11af15829345b6baea8db1af99aa0f4ac20e6ca4 (patch)
treec543fdd6f28f49e2bb55e58508f19ff9be7cc240 /src/totem-grilo.c
parent3a7b7db040045338c4881ab08eb9c18b8dca3aef (diff)
downloadtotem-11af15829345b6baea8db1af99aa0f4ac20e6ca4.tar.gz
main: Postpone loading library after playback
https://bugzilla.gnome.org/show_bug.cgi?id=728716
Diffstat (limited to 'src/totem-grilo.c')
-rw-r--r--src/totem-grilo.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index ba1236468..26616b5fb 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -63,6 +63,8 @@ struct _TotemGriloPrivate {
Totem *totem;
GtkWindow *main_window;
+ gboolean plugins_loaded;
+
GrlSource *local_metadata_src;
GrlSource *metadata_store_src;
GrlSource *bookmarks_src;
@@ -2488,6 +2490,18 @@ totem_grilo_finalize (GObject *object)
G_OBJECT_CLASS (totem_grilo_parent_class)->finalize (object);
}
+void
+totem_grilo_start (TotemGrilo *self)
+{
+ if (self->priv->plugins_loaded)
+ return;
+
+ g_debug ("TotemGrilo: Loading plugins");
+
+ load_grilo_plugins (self);
+ self->priv->plugins_loaded = TRUE;
+}
+
static void
totem_grilo_constructed (GObject *object)
{
@@ -2498,7 +2512,6 @@ totem_grilo_constructed (GObject *object)
setup_ui (self);
grl_init (0, NULL);
setup_config (self);
- load_grilo_plugins (self);
}
gboolean