[gnome-music/wip/mschraal/core: 106/164] artistalbumwidget: Make discs non-selectable



commit 3959f03e27e603a7c1ffaa279df01c4bfe60517f
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Jun 23 22:29:31 2019 +0200

    artistalbumwidget: Make discs non-selectable

 gnomemusic/widgets/artistalbumwidget.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index 2cc0076e..43e4416a 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -108,6 +108,11 @@ class ArtistAlbumWidget(Gtk.Box):
 
         self._disc_list_box.bind_model(self._model, self._create_widget)
 
+        def non_selectable(child):
+            child.props.selectable = False
+
+        self._disc_list_box.forall(non_selectable)
+
     def _create_widget(self, disc):
         disc_box = self._create_disc_box(disc.props.disc_nr, disc.model)
 


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