[gnome-music/wip/jfelder/selection-misc-cleanups: 5/9] disclistbox: Do not change a DiscBox selection-mode from DiscListBox



commit c61784d06222942ef8d9a3248535581d6b2d93cb
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Jan 9 17:32:36 2020 +0100

    disclistbox: Do not change a DiscBox selection-mode from DiscListBox
    
    Instead a DiscListBox consumer should create a binding between
    DiscListBox and DiscBox.

 gnomemusic/widgets/disclistboxwidget.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/widgets/disclistboxwidget.py b/gnomemusic/widgets/disclistboxwidget.py
index 1df609f9..b7e95e33 100644
--- a/gnomemusic/widgets/disclistboxwidget.py
+++ b/gnomemusic/widgets/disclistboxwidget.py
@@ -193,9 +193,3 @@ class DiscListBox(Gtk.ListBox):
             return
 
         self._selection_mode = value
-
-        def set_selection_mode(child):
-            print("set selection mode on", child)
-            child.props.selection_mode = value
-
-        self.foreach(set_selection_mode)


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