[gnome-music/wip/jfelder/playlistview-random-song: 2/3] playlistview: Scroll to the selected song on play



commit d5d7b01b7996ac224a3f24efab8c31fe67064ec9
Author: Jean Felder <jfelder src gnome org>
Date:   Mon Apr 15 17:06:45 2019 +0200

    playlistview: Scroll to the selected song on play
    
    This way, PlaylistView has the same behavior as SongsView.

 gnomemusic/views/playlistview.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index 2d4376c6..9f3cfbef 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -353,6 +353,8 @@ class PlaylistView(BaseView):
             if self.model[_iter][8] == self._error_icon_name:
                 return
 
+            self._view.scroll_to_cell(path, None, False, 0., 0.)
+
             playlist_id = self._current_playlist.get_id()
             self.player.set_playlist(
                 PlayerPlaylist.Type.PLAYLIST, playlist_id, self.model, _iter)


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