[gnome-news/wip/gbsneto/improvements: 5/7] toolbar: correctly hide buttons



commit da9c4b26fa764d3a5b5a0652b0300115ff087809
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Mar 5 19:48:20 2016 -0300

    toolbar: correctly hide buttons

 data/ui/headerbar.ui |    1 -
 gnomenews/toolbar.py |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/ui/headerbar.ui b/data/ui/headerbar.ui
index 51f035c..1cc6408 100644
--- a/data/ui/headerbar.ui
+++ b/data/ui/headerbar.ui
@@ -146,7 +146,6 @@
     </child>
     <child>
       <object class="GtkToggleButton" id="select-button">
-        <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="valign">center</property>
         <property name="sensitive">True</property>
diff --git a/gnomenews/toolbar.py b/gnomenews/toolbar.py
index ab258b2..17af8da 100644
--- a/gnomenews/toolbar.py
+++ b/gnomenews/toolbar.py
@@ -115,6 +115,7 @@ class Toolbar(GObject.GObject):
             self.reset_header_title()
 
         self._back_button.set_visible(self._state == ToolbarState.CHILD_VIEW)
+        self._search_button.set_visible(self._state != ToolbarState.CHILD_VIEW)
         self.add_toggle_button.set_visible(self._state != ToolbarState.CHILD_VIEW)
 
     @log


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