[gnome-music/wip/mschraal/baseview-cleanup: 4/8] baseview: Remove _on_grilo_ready



commit b97f80438075dbafc661fa575893784c80fb05a1
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Jul 17 20:12:04 2019 +0200

    baseview: Remove _on_grilo_ready
    
    It is not used anymore.

 gnomemusic/views/baseview.py | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index 3431b593..89b1b423 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -80,29 +80,11 @@ class BaseView(Gtk.Stack):
             'selection-mode', self._window, 'selection-mode',
             GObject.BindingFlags.BIDIRECTIONAL)
 
-        if not self._init:
-            self._on_grilo_ready()
-
     @log
     def _setup_view(self):
         """Instantiate and set up the view object"""
         pass
 
-    @log
-    def _on_grilo_ready(self, data=None):
-        if (self._headerbar.props.stack.props.visible_child == self
-                and not self._init):
-            pass
-
-        self._headerbar.props.stack.connect(
-            'notify::visible-child', self._on_headerbar_visible)
-
-    @log
-    def _on_headerbar_visible(self, widget, param):
-        if (self == widget.get_visible_child()
-                and not self._init):
-            pass
-
     @log
     def _on_selection_mode_changed(self, widget, data=None):
         if not self.props.selection_mode:


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