[gnome-music/wip/jfelder/discbox-selection-mode-allowed: 13/13] artistalbumwidget: Make discboxes respect selection_mode_allowed
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/discbox-selection-mode-allowed: 13/13] artistalbumwidget: Make discboxes respect selection_mode_allowed
- Date: Tue, 28 Jan 2020 13:48:19 +0000 (UTC)
commit c8ec8cae3c925962149d7585317bc615823c56b5
Author: Jean Felder <jfelder src gnome org>
Date: Fri Jan 17 01:13:15 2020 +0100
artistalbumwidget: Make discboxes respect selection_mode_allowed
This prevents songwidgets from being wrongly selected with a Ctrl +
left-click gesture in ArtistsView.
gnomemusic/widgets/artistalbumwidget.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index 998524c1..b9c35ba1 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -94,6 +94,11 @@ class ArtistAlbumWidget(Gtk.Box):
def _create_widget(self, disc):
disc_box = self._create_disc_box(disc.props.disc_nr, disc.model)
+ self._disc_list_box.bind_property(
+ "selection-mode-allowed", disc_box, "selection-mode-allowed",
+ GObject.BindingFlags.BIDIRECTIONAL
+ | GObject.BindingFlags.SYNC_CREATE)
+
self._disc_list_box.bind_property(
"selection-mode", disc_box, "selection-mode",
GObject.BindingFlags.BIDIRECTIONAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]