[gnome-music/wip/mschraal/toolbar-fixes: 2/4] toolbar: Remove old packing workaround



commit 53ce4079715ea745f75a8b2ce5749cefe518085f
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 24 16:38:46 2018 +0100

    toolbar: Remove old packing workaround

 gnomemusic/toolbar.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 3861f36..ddf7c0b 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -75,14 +75,7 @@ class Toolbar(GObject.GObject):
         self._selection_menu_label = self._ui.get_object(
             'selection-menu-button-label')
         self._selection_menu_button.set_relief(Gtk.ReliefStyle.NONE)
-        if Gtk.get_minor_version() >= 11:
-            self.header_bar.remove(self._select_button)
-            self.header_bar.remove(self._cancel_button)
-            self.header_bar.remove(self._search_button)
-
-            self.header_bar.pack_end(self._select_button)
-            self.header_bar.pack_end(self._cancel_button)
-            self.header_bar.pack_end(self._search_button)
+
         self._back_button.connect('clicked', self.on_back_button_clicked)
         self._window = self.header_bar.get_parent()
 


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