[gnome-music/wip/jfelder/playlistview-random-song: 4/5] playlistview: Scroll to the selected song on play
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlistview-random-song: 4/5] playlistview: Scroll to the selected song on play
- Date: Wed, 17 Apr 2019 19:44:35 +0000 (UTC)
commit 541790167886b7a7b35c069e9ac3beef60d1c210
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]