[gnome-music] window: Overlay search dropdown on stack
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] window: Overlay search dropdown on stack
- Date: Mon, 12 May 2014 08:46:32 +0000 (UTC)
commit d871d3a66519b94e3f8d75c818a0b36a19a6cfe1
Author: Arnel Borja <arnelborja src gnome org>
Date: Thu May 1 23:50:14 2014 +0800
window: Overlay search dropdown on stack
gnomemusic/window.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index e81441a..9023cb1 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -184,10 +184,11 @@ class Window(Gtk.ApplicationWindow):
transition_duration=100,
visible=True,
can_focus=False)
+ self._overlay = Gtk.Overlay(child=self._stack)
+ self._overlay.add_overlay(self.toolbar.dropdown)
self.set_titlebar(self.toolbar.header_bar)
self._box.pack_start(self.toolbar.searchbar, False, False, 0)
- self._box.pack_start(self.toolbar.dropdown, False, False, 0)
- self._box.pack_start(self._stack, True, True, 0)
+ self._box.pack_start(self._overlay, True, True, 0)
self._box.pack_start(self.player.eventBox, False, False, 0)
self._box.pack_start(self.selection_toolbar.eventbox, False, False, 0)
self.add(self._box)
@@ -210,6 +211,7 @@ class Window(Gtk.ApplicationWindow):
self.toolbar.set_state(ToolbarState.ALBUMS)
self.toolbar.header_bar.show()
+ self._overlay.show()
self.player.eventBox.show_all()
self._box.show()
self.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]