[baobab/wip/gtkmaster] Make headerbar a titlebar
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/gtkmaster] Make headerbar a titlebar
- Date: Sun, 2 Jun 2013 10:23:48 +0000 (UTC)
commit 421d039a0cc79c522de2e1380542793635a28e71
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jun 2 12:23:36 2013 +0200
Make headerbar a titlebar
src/baobab-main-window.ui | 114 ++++++++++++++++++++++----------------------
1 files changed, 57 insertions(+), 57 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index 8e8c81e..8d55105 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -46,76 +46,76 @@
</object>
<template class="BaobabWindow" parent="Gtk.ApplicationWindow">
<property name="title" translatable="yes">Disk Usage Analyzer</property>
- <child>
- <object class="GtkGrid" id="window_contents">
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="header_bar">
<property name="visible">True</property>
- <property name="orientation">vertical</property>
+ <property name="can_focus">False</property>
<child>
- <object class="GtkHeaderBar" id="header_bar">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
+ <object class="GtkButton" id="back_button">
+ <property name="valign">center</property>
+ <property name="can_focus">True</property>
+ <property name="action_name">win.show-home-page</property>
+ <style>
+ <class name="image-button"/>
+ </style>
<child>
- <object class="GtkButton" id="back_button">
- <property name="valign">center</property>
- <property name="can_focus">True</property>
- <property name="action_name">win.show-home-page</property>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage" id="back_button_image">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_name">go-previous-symbolic</property>
- </object>
- </child>
+ <object class="GtkImage" id="back_button_image">
+ <property name="visible">True</property>
+ <property name="icon_size">1</property>
+ <property name="icon_name">go-previous-symbolic</property>
</object>
- <packing>
- <property name="pack_type">start</property>
- </packing>
</child>
+ </object>
+ <packing>
+ <property name="pack_type">start</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="reload_button">
+ <property name="valign">center</property>
+ <property name="can_focus">True</property>
+ <property name="action_name">win.reload</property>
+ <style>
+ <class name="image-button"/>
+ </style>
<child>
- <object class="GtkButton" id="reload_button">
- <property name="valign">center</property>
- <property name="can_focus">True</property>
- <property name="action_name">win.reload</property>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage" id="reload_button_image">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_name">view-refresh-symbolic</property>
- </object>
- </child>
+ <object class="GtkImage" id="reload_button_image">
+ <property name="visible">True</property>
+ <property name="icon_size">1</property>
+ <property name="icon_name">view-refresh-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="menu_button">
+ <property name="valign">center</property>
+ <property name="menu_model">winmenu</property>
+ <property name="action_name">win.gear-menu</property>
+ <style>
+ <class name="image-button"/>
+ </style>
<child>
- <object class="GtkMenuButton" id="menu_button">
- <property name="valign">center</property>
- <property name="menu_model">winmenu</property>
- <property name="action_name">win.gear-menu</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>
+ <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>
- <packing>
- <property name="pack_type">end</property>
- </packing>
</child>
</object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkGrid" id="window_contents">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkInfoBar" id="infobar">
<property name="visible">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]