[gnome-music] headerbar: Fix item positions
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] headerbar: Fix item positions
- Date: Mon, 10 Feb 2014 14:05:48 +0000 (UTC)
commit 75f4a0be6f47e066517bdacc826fbb5e4d6d1971
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Sun Feb 2 01:12:31 2014 +0200
headerbar: Fix item positions
https://bugzilla.gnome.org/show_bug.cgi?id=721741
gnomemusic/toolbar.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 6e3f615..1cf66f9 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -73,6 +73,18 @@ class Toolbar(GObject.GObject):
if Gtk.Widget.get_default_direction() is Gtk.TextDirection.RTL:
_back_button_image = self._ui.get_object('back-button-image')
_back_button_image.set_property('icon-name', 'go-previous-rtl-symbolic')
+ if Gtk.get_minor_version() >= 11:
+ self.header_bar.remove(self._close_button)
+ self.header_bar.remove(self._close_separator)
+ 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._close_button)
+ self.header_bar.pack_end(self._close_separator)
+ 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._close_button.connect('clicked', self._close_button_clicked)
if Gtk.get_minor_version() <= 8:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]