[gnome-music/wip/jfelder/playlistview-random-song: 6/6] 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: 6/6] playlistview: Scroll to the selected song on play
- Date: Thu, 18 Apr 2019 15:32:02 +0000 (UTC)
commit 7742db30f0df5097b72d48bc9ff768712790b891
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 d280e259..e59962de 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -266,6 +266,8 @@ class PlaylistView(BaseView):
iter_ = self.model.get_iter_from_string(str(position))
self.model[iter_][10] = True
+ path = self.model.get_path(iter_)
+ self._view.scroll_to_cell(path, None, False, 0., 0.)
if self.model[iter_][8] != self._error_icon_name:
self._iter_to_clean = iter_.copy()
self._iter_to_clean_model = self.model
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]