[gnome-music/wip/mschraal/window-cleanup: 4/5] window: Centralize overlay addition



commit fb3faef49dc4bbee330f70f7f7d161291925b48a
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Sep 5 15:24:30 2018 +0200

    window: Centralize overlay addition

 gnomemusic/window.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 12b6564f..0f5473e0 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -86,9 +86,8 @@ class Window(Gtk.ApplicationWindow):
         self.prev_view = None
         self.curr_view = None
 
-        self._setup_view()
         self.notifications_popup = NotificationsPopup()
-        self._overlay.add_overlay(self.notifications_popup)
+        self._setup_view()
 
         MediaKeys(self._player, self)
 
@@ -167,6 +166,7 @@ class Window(Gtk.ApplicationWindow):
         self._overlay.add(self._stack)
         # FIXME: Need to find a proper way to do this.
         self._overlay.add_overlay(self._searchbar._dropdown)
+        self._overlay.add_overlay(self.notifications_popup)
         self.set_titlebar(self._headerbar)
         self._box.pack_start(self._searchbar, False, False, 0)
         self._box.pack_start(self._overlay, True, True, 0)


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