GNOME Bugzilla – Bug 157066
Dragging files in the playlist doesn't change ->current
Last modified: 2004-12-22 21:47:04 UTC
1) open totem and add several files to the playlist 2) start playing a file 3) drag the currently playing file elsewhere within the playlist 4) let the track finish playing You'll notice that there are now two "now playing" indicators (http://derf.us/screendata/silicon/2004-11-01-13-44-35.jpg) and that the wrong track is now playing. One would expect that the track following the currently playing track would be played next, even after that track is moved, however the track following where the currently playing track was before the move is the next one played.
The problem is that we don't change the "current" pointer to point to the currently playing track, if it's changed place in the treeview. I'll check this bug when I'm not hit by the Xlib DND hang anymore.
Created attachment 33824 [details] [review] totem-playlist-update-current.patch This patch is supposed to work, but as you can see if you run it, the GtkTreeRowReference is not valid after the reorder, which is indeed pretty broken and bizarre.
Update dependency.
Worked around the GtkTreeRowReference bug. 2004-11-19 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (totem_playlist_set_reorderable), (button_press_cb), (button_release_cb), (drag_end_cb): work-around the GtkTreeRowReference not surviving a drag'n'drop (bug #72043) and keep track of the ->currently playing file (Closes: #157066)