[gnome-music/wip/jfelder/artistview-fixes: 1/9] albumsview: Do not override selection mode signal



commit 2f8b99e1032928d2f7e6c36795e7123e888648ea
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Sep 10 14:39:08 2019 +0200

    albumsview: Do not override selection mode signal
    
    It is already handled by its base class.

 gnomemusic/views/albumsview.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index c0f70a91..3be02830 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -67,8 +67,6 @@ class AlbumsView(Gtk.Stack):
         self._flowbox.bind_model(model, self._create_widget)
         self._flowbox.connect("child-activated", self._on_child_activated)
 
-        self.connect("notify::selection-mode", self._on_selection_mode_changed)
-
         self.bind_property(
             'selection-mode', self._window, 'selection-mode',
             GObject.BindingFlags.BIDIRECTIONAL)
@@ -85,10 +83,6 @@ class AlbumsView(Gtk.Stack):
 
         self.show_all()
 
-    def _on_selection_mode_changed(self, widget, data=None):
-        if not self.props.selection_mode:
-            self.unselect_all()
-
     def _on_search_mode_changed(self, klass, param):
         if (not self.props.search_mode_active
                 and self._headerbar.props.stack.props.visible_child == self


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