[gnome-music/wip/merge: 141/343] Show stack switcher



commit 1c579c8e87f8bc76c7ce0973b27ebf2faf59f42d
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 20:49:17 2013 +0200

    Show stack switcher

 gnomemusic/toolbar.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index ccc464a..6e93ac6 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -30,7 +30,7 @@ class Toolbar(GObject.GObject):
         self._selectionMenu = self._ui.get_object("selection-menu")
         self._selectionMenuButton = self._ui.get_object("selection-menu-button")
         self._selectionMenuButton.set_relief(Gtk.ReliefStyle.NONE)
-        self.headerBar.custom_title = self._stackSwitcher
+        self.headerBar.set_custom_title(self._stackSwitcher)
         self._searchButton = self._ui.get_object("search-button")
         self._backButton.connect('clicked', self.setState)
         self._closeButton.connect('clicked', self._closeButtonClicked)
@@ -65,15 +65,15 @@ class Toolbar(GObject.GObject):
 
     def _update(self):
         if (self._state == ToolbarState.SINGLE or self._selectionMode):
-            self.headerBar.custom_title = None
+            self.headerBar.set_custom_title(None)
             self._backButton.show()
         else:
             self.title = ""
-            self.headerBar.custom_title = self._stackSwitcher
+            self.headerBar.set_custom_title(self._stackSwitcher)
             self._backButton.hide()
 
         if self._selectionMode:
-            self.headerBar.custom_title = self._selectionMenuButton
+            self.headerBar.set_custom_title(self._selectionMenuButton)
             self._closeSeparator.hide()
             self._closeButton.hide()
         else:


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