totem r5922 - in trunk: . src



Author: hadess
Date: Sun Jan 18 02:00:34 2009
New Revision: 5922
URL: http://svn.gnome.org/viewvc/totem?rev=5922&view=rev

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

	* src/totem-menu.c (on_recent_file_item_activated):
	Don't add the recent file to the recent files list
	*again*
	* src/totem-object.c (totem_add_to_playlist_and_play):
	Don't try to play past the last item in the playlist,
	so that clicking on a menu item doesn't play the
	current file again, but the one we just added



Modified:
   trunk/ChangeLog
   trunk/src/totem-menu.c
   trunk/src/totem-object.c

Modified: trunk/src/totem-menu.c
==============================================================================
--- trunk/src/totem-menu.c	(original)
+++ trunk/src/totem-menu.c	Sun Jan 18 02:00:34 2009
@@ -553,7 +553,7 @@
 	recent_info = g_object_get_data (G_OBJECT (action), "recent-info");
 	uri = gtk_recent_info_get_uri (recent_info);
 
-	totem_add_to_playlist_and_play (totem, uri, NULL, TRUE);
+	totem_add_to_playlist_and_play (totem, uri, NULL, FALSE);
 }
 
 static gint

Modified: trunk/src/totem-object.c
==============================================================================
--- trunk/src/totem-object.c	(original)
+++ trunk/src/totem-object.c	Sun Jan 18 02:00:34 2009
@@ -315,7 +315,7 @@
 		char *mrl, *subtitle;
 
 		subtitle = NULL;
-		totem_playlist_set_current (totem->playlist, end + 1);
+		totem_playlist_set_current (totem->playlist, end);
 		mrl = totem_playlist_get_current_mrl (totem->playlist, &subtitle);
 		totem_action_set_mrl_and_play (totem, mrl, subtitle);
 		g_free (mrl);



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