summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2006-02-08 13:58:50 +0000
committerBastien Nocera <hadess@src.gnome.org>2006-02-08 13:58:50 +0000
commitb4d3fbbc1084c401481e5f90466a7befcbbde661 (patch)
treeac4e457625d945fec54f25c14fa3644cd0b6fbf4
parent8c25226ff16df1ea12cfc8a9289a709bbb0ed43d (diff)
downloadtotem-b4d3fbbc1084c401481e5f90466a7befcbbde661.tar.gz
Don't reverse items when moving them down (Closes: #330399)
2006-02-08 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (totem_playlist_move_files): Don't reverse items when moving them down (Closes: #330399)
-rw-r--r--ChangeLog5
-rw-r--r--src/totem-playlist.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0554b08a4..f94428a02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-08 Bastien Nocera <hadess@hadess.net>
+
+ * src/totem-playlist.c: (totem_playlist_move_files):
+ Don't reverse items when moving them down (Closes: #330399)
+
2006-01-22 Bastien Nocera <hadess@hadess.net>
* src/backend/bacon-video-widget-xine.c:
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index b0009aad2..b4bbe4893 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -936,7 +936,9 @@ totem_playlist_move_files (TotemPlaylist *playlist, gboolean direction_up)
g_list_foreach (paths, (GFunc) gtk_tree_path_free, NULL);
g_list_free (paths);
- refs = g_list_reverse (refs);
+ /* Otherwise we reverse the items when moving down */
+ if (direction_up != FALSE)
+ refs = g_list_reverse (refs);
if (direction_up == FALSE)
pos = pos + 2;