[gnome-music/wip/mschraal/searchview-selection-fixes] searchview: Correctly select single songs
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/searchview-selection-fixes] searchview: Correctly select single songs
- Date: Sat, 8 Feb 2020 16:24:58 +0000 (UTC)
commit 7fe2ebd8d4031248aa7c74a7adb05f1854d0714c
Author: Marinus Schraal <mschraal gnome org>
Date: Sat Feb 8 16:09:24 2020 +0100
searchview: Correctly select single songs
Single songs were not selected as the selected value on SongWidget was
set, but this is not bound to the relevant CoreSong.
Use the CoreSong to set the selection instead.
gnomemusic/views/searchview.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 65da0699..2f50633c 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -404,7 +404,7 @@ class SearchView(Gtk.Stack):
with self._model.freeze_notify():
def song_select(child):
song_widget = child.get_child()
- song_widget.props.selected = value
+ song_widget.props.coresong.props.selected = value
self._songs_listbox.foreach(song_select)
self._album_flowbox.foreach(child_select)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]