[gnome-music/wip/mschraal/window-selection-mode: 22/22] albumsview: Use own selection-mode property



commit 6b1a7106a4d080e0bec9a197672f022809ce349d
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Sep 4 12:35:35 2018 +0200

    albumsview: Use own selection-mode property

 gnomemusic/views/albumsview.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index ba005c5e..4e0edf4f 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -53,7 +53,7 @@ class AlbumsView(BaseView):
 
     @log
     def _on_changes_pending(self, data=None):
-        if (self._init and not self._headerbar.selection_mode):
+        if (self._init and not self.props.selection_mode):
             self._offset = 0
             self.populate()
             grilo.changes_pending['Albums'] = False
@@ -62,7 +62,7 @@ class AlbumsView(BaseView):
     def _on_selection_mode_changed(self, widget, data=None):
         super()._on_selection_mode_changed(widget, data)
 
-        if (not self._headerbar.selection_mode
+        if (not self.props.selection_mode
                 and grilo.changes_pending['Albums']):
             self._on_changes_pending()
 


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