[gnome-music/wip/mschraal/core: 81/118] albumwidget2: Make disclistboxrows non-selectable
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core: 81/118] albumwidget2: Make disclistboxrows non-selectable
- Date: Wed, 26 Jun 2019 13:06:49 +0000 (UTC)
commit 3107c8164016d450881cee95930da4fd77af4928
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Jun 20 21:55:45 2019 +0200
albumwidget2: Make disclistboxrows non-selectable
gnomemusic/widgets/albumwidget2.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gnomemusic/widgets/albumwidget2.py b/gnomemusic/widgets/albumwidget2.py
index 094eb9a4..f6e6fd5a 100644
--- a/gnomemusic/widgets/albumwidget2.py
+++ b/gnomemusic/widgets/albumwidget2.py
@@ -82,6 +82,11 @@ class AlbumWidget2(Gtk.EventBox):
self._album_model = corealbum.props.model
self._listbox.bind_model(self._album_model, self._create_widget)
+ def non_selectable(child):
+ child.props.selectable = False
+
+ self._listbox.forall(non_selectable)
+
corealbum.connect("notify::duration", self._on_duration_changed)
def _create_widget(self, disc):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]