[gnome-system-monitor] Make the headerbar a titlebar
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Make the headerbar a titlebar
- Date: Fri, 16 Aug 2013 10:21:59 +0000 (UTC)
commit e4dddc3dbb048a50dbe5ba5557a07b2b23b79277
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Aug 16 10:53:50 2013 +0200
Make the headerbar a titlebar
https://bugzilla.gnome.org/show_bug.cgi?id=705088
data/interface.ui | 89 +++++++++++++++++++++++++++-------------------------
1 files changed, 46 insertions(+), 43 deletions(-)
---
diff --git a/data/interface.ui b/data/interface.ui
index b09d0e5..ab62207 100644
--- a/data/interface.ui
+++ b/data/interface.ui
@@ -7,62 +7,65 @@
<property name="default_width">440</property>
<property name="default_height">495</property>
<property name="has_resize_grip">False</property>
- <property name="hide_titlebar_when_maximized">True</property>
- <child>
- <object class="GtkBox" id="main_box">
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="header_bar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
+ <property name="show_close_button">True</property>
+ <style>
+ <class name="titlebar"/>
+ </style>
+ <child type="title">
+ <object class="GtkStackSwitcher" id="stack_switcher">
+ <property name="visible">True</property>
+ <property name="stack">stack</property>
+ </object>
+ </child>
<child>
- <object class="GtkHeaderBar" id="header_bar">
+ <object class="GtkToggleButton" id="search_button">
<property name="visible">True</property>
- <child type="title">
- <object class="GtkStackSwitcher" id="stack_switcher">
- <property name="visible">True</property>
- <property name="stack">stack</property>
- </object>
- </child>
+ <property name="action_name">win.search</property>
+ <style>
+ <class name="image-button"/>
+ </style>
<child>
- <object class="GtkToggleButton" id="search_button">
+ <object class="GtkImage" id="search_image">
<property name="visible">True</property>
- <property name="action_name">win.search</property>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage" id="search_image">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_name">edit-find-symbolic</property>
- </object>
- </child>
+ <property name="icon_size">1</property>
+ <property name="icon_name">edit-find-symbolic</property>
</object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
</child>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkMenuButton" id="process_menu_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="halign">end</property>
+ <style>
+ <class name="image-button"/>
+ </style>
<child>
- <object class="GtkMenuButton" id="process_menu_button">
+ <object class="GtkImage" id="menu_button_image">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="halign">end</property>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage" id="menu_button_image">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_name">emblem-system-symbolic</property>
- </object>
- </child>
+ <property name="icon_size">1</property>
+ <property name="icon_name">emblem-system-symbolic</property>
</object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
</child>
</object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="main_box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="stack">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]