[gnome-music/wip/jfelder/musicbrainz-tageditordialog: 209/209] aaa



commit d4f5a7c72961cfbfb893ff33c3639c874f0946b9
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Jun 12 18:22:36 2019 +0200

    aaa

 gnomemusic/widgets/selectiontoolbar.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/selectiontoolbar.py b/gnomemusic/widgets/selectiontoolbar.py
index 517d0faf..b3f7a4c5 100644
--- a/gnomemusic/widgets/selectiontoolbar.py
+++ b/gnomemusic/widgets/selectiontoolbar.py
@@ -46,10 +46,9 @@ class SelectionToolbar(Gtk.ActionBar):
         return '<SelectionToolbar>'
 
     @log
-    def __init__(self, window):
+    def __init__(self):
         super().__init__()
 
-        self._headerbar = window._headerbar
         self.connect(
             'notify::selected-items-count', self._on_item_selection_changed)
 
@@ -65,7 +64,8 @@ class SelectionToolbar(Gtk.ActionBar):
 
     @log
     def _on_item_selection_changed(self, widget, data):
-        stack = self._headerbar.props.stack
+        window = self.get_toplevel()
+        stack = window._headerbar.props.stack
         songs_view_visible = (stack.props.visible_child_name == 'songs')
         selection_size = self.props.selected_items_count
 


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