[gnome-news] toolbar: simplify the code



commit 793ffcdbf9298a94e5e2545d6675427eccd8899a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Nov 7 10:06:24 2016 -0200

    toolbar: simplify the code

 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 1324ed8..63f26ba 100644
--- a/data/ui/headerbar.ui
+++ b/data/ui/headerbar.ui
@@ -144,6 +144,7 @@
   <object class="GtkHeaderBar" id="header-bar">
     <property name="visible">True</property>
     <property name="vexpand">False</property>
+    <property name="show_close_button">True</property>
     <child>
       <object class="GtkButton" id="starred-button">
         <property name="can_focus">False</property>
diff --git a/gnomenews/toolbar.py b/gnomenews/toolbar.py
index 7624660..cd4a8a9 100644
--- a/gnomenews/toolbar.py
+++ b/gnomenews/toolbar.py
@@ -46,7 +46,6 @@ class Toolbar(GObject.GObject):
         self._ui = Gtk.Builder()
         self._ui.add_from_resource('/org/gnome/News/ui/headerbar.ui')
         self.header_bar = self._ui.get_object('header-bar')
-        self.header_bar.set_show_close_button(True)
         self.header_bar.set_custom_title(self._stack_switcher)
 
         self.add_toggle_button = self._ui.get_object('add-toggle-button')


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