summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Hasselmann <hasselmm@src.gnome.org>2007-12-03 09:58:32 +0000
committerMathias Hasselmann <hasselmm@src.gnome.org>2007-12-03 09:58:32 +0000
commit187da6c141fda7b658c576914651e0efa3d04508 (patch)
tree5c543636f201b8ff2f89f3801d692a2d4642a4e3
parente38155ffe2c53490e1c3864d56e2340e163907ea (diff)
downloadtotem-187da6c141fda7b658c576914651e0efa3d04508.tar.gz
Small improvements to the publish plugin.
* src/plugins/publish/totem-publish.c: Populate the internal playlist after plugin activation. Switch to playlist page right after retrieving the list for better user experience (streaming lag). svn path=/trunk/; revision=4941
-rw-r--r--ChangeLog8
-rw-r--r--src/plugins/publish/totem-publish.c11
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b3b44cc3..eef83c5f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-12-03 Mathias Hasselmann <mathias@openismus.com>
+
+ Small improvements to the publish plugin.
+
+ * src/plugins/publish/totem-publish.c: Populate the internal playlist
+ after plugin activation. Switch to playlist page right after
+ retrieving the list for better user experience (streaming lag).
+
============ Version 2.21.3
2007-12-03 Bastien Nocera <hadess@hadess.net>
diff --git a/src/plugins/publish/totem-publish.c b/src/plugins/publish/totem-publish.c
index c1f19d332..7ba3036b5 100644
--- a/src/plugins/publish/totem-publish.c
+++ b/src/plugins/publish/totem-publish.c
@@ -308,6 +308,7 @@ totem_publish_plugin_playlist_item_added_cb (TotemPlaylist *playlist,
g_strdup (url), g_free);
g_free (key);
+
}
static void
@@ -404,6 +405,7 @@ totem_publish_plugin_load_playlist (TotemPublishPlugin *self,
if (error)
goto out;
+ ev_sidebar_set_current_page (EV_SIDEBAR (self->totem->sidebar), "playlist");
totem_playlist_clear (self->totem->playlist);
for (i = 1; i <= n_entries; ++i) {
@@ -423,8 +425,6 @@ totem_publish_plugin_load_playlist (TotemPublishPlugin *self,
g_free (title);
g_free (mrl);
}
-
- ev_sidebar_set_current_page (EV_SIDEBAR (self->totem->sidebar), "playlist");
}
out:
@@ -588,11 +588,12 @@ totem_publish_plugin_activate (TotemPlugin *plugin,
self->item_removed_id = g_signal_connect (self->totem->playlist, "item-removed",
G_CALLBACK (totem_publish_plugin_playlist_item_removed_cb), self);
+ G_UNLOCK (totem_publish_plugin_lock);
+
totem_playlist_foreach (self->totem->playlist,
- totem_publish_plugin_playlist_item_added_cb,
- self);
+ totem_publish_plugin_playlist_item_added_cb, self);
- G_UNLOCK (totem_publish_plugin_lock);
+ totem_publish_plugin_playlist_changed_cb (self->totem->playlist, self);
return epc_publisher_run_async (self->publisher, error);
}