totem r5929 - in trunk: . src src/plugins/coherence_upnp



Author: hadess
Date: Wed Jan 21 14:05:42 2009
New Revision: 5929
URL: http://svn.gnome.org/viewvc/totem?rev=5929&view=rev

Log:
2009-01-21  Bastien Nocera  <hadess hadess net>

	* src/totem-playlist.c (totem_playlist_add_one_mrl):
	Don't ever use empty titles as the display name

	* src/plugins/coherence_upnp/coherence_upnp.py: Add a shadow
	around the treeview and use add_to_playlist_and_play
	for the double-click



Modified:
   trunk/ChangeLog
   trunk/src/plugins/coherence_upnp/coherence_upnp.py
   trunk/src/totem-playlist.c

Modified: trunk/src/plugins/coherence_upnp/coherence_upnp.py
==============================================================================
--- trunk/src/plugins/coherence_upnp/coherence_upnp.py	(original)
+++ trunk/src/plugins/coherence_upnp/coherence_upnp.py	Wed Jan 21 14:05:42 2009
@@ -18,6 +18,7 @@
     def __init__ (self):
         totem.Plugin.__init__(self)
         self.ui = TreeWidget()
+        self.ui.window.set_shadow_type(gtk.SHADOW_IN)
         self.ui.cb_item_right_click = self.button_pressed
         self.ui.window.show_all()
         selection = self.ui.treeview.get_selection()
@@ -104,10 +105,9 @@
         self.totem_object = totem_object
 
         def load_and_play(url):
-            totem_object.action_remote(totem.REMOTE_COMMAND_REPLACE,url)
-            totem_object.action_remote(totem.REMOTE_COMMAND_PLAY,url)
+            totem_object.add_to_playlist_and_play (url, '', True)
 
         self.ui.cb_item_dbl_click = load_and_play
 
     def deactivate (self, totem_object):
-        totem_object.remove_sidebar_page ("upnp-coherence")
\ No newline at end of file
+        totem_object.remove_sidebar_page ("upnp-coherence")

Modified: trunk/src/totem-playlist.c
==============================================================================
--- trunk/src/totem-playlist.c	(original)
+++ trunk/src/totem-playlist.c	Wed Jan 21 14:05:42 2009
@@ -1658,7 +1658,7 @@
 	g_return_val_if_fail (TOTEM_IS_PLAYLIST (playlist), FALSE);
 	g_return_val_if_fail (mrl != NULL, FALSE);
 
-	if (display_name == NULL)
+	if (display_name == NULL || *display_name == '\0')
 		filename_for_display = totem_playlist_mrl_to_title (mrl);
 	else
 		filename_for_display = g_strdup (display_name);



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