[gnome-color-manager] Use headerbar
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Use headerbar
- Date: Tue, 27 Jan 2015 10:04:48 +0000 (UTC)
commit f98f9ed8e0d0273f998e96479d289dd0bdbd411a
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Tue Jan 6 19:52:03 2015 +0700
Use headerbar
data/gcm-picker.ui | 44 +++++++++-----------------------------------
data/gcm-viewer.ui | 37 ++++++++-----------------------------
2 files changed, 17 insertions(+), 64 deletions(-)
---
diff --git a/data/gcm-picker.ui b/data/gcm-picker.ui
index 2efa04a..cc2252b 100644
--- a/data/gcm-picker.ui
+++ b/data/gcm-picker.ui
@@ -23,10 +23,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<!-- interface-requires gtk+ 3.10 -->
<object class="GtkDialog" id="dialog_picker">
<property name="can_focus">False</property>
- <property name="border_width">5</property>
+ <property name="border_width">3</property>
<property name="title" translatable="yes" comments="Window title, where the user can pick spot colors
using a measuring device">Color Picker</property>
<property name="icon_name">gnome-color-manager</property>
<property name="type_hint">dialog</property>
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="headerbar">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="show-close-button">True</property>
+ <property name="title" translatable="yes">Color Picker</property>
+ </object>
+ </child>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
@@ -37,9 +45,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_start">6</property>
- <property name="margin_end">6</property>
- <property name="margin_top">6</property>
<property name="orientation">vertical</property>
<property name="spacing">9</property>
<child>
@@ -364,38 +369,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="position">0</property>
</packing>
</child>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="button_close">
- <property name="label">gtk-close</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
</object>
</child>
- <action-widgets>
- <action-widget response="0">button_close</action-widget>
- </action-widgets>
</object>
</interface>
diff --git a/data/gcm-viewer.ui b/data/gcm-viewer.ui
index 99d2c5d..f171174 100644
--- a/data/gcm-viewer.ui
+++ b/data/gcm-viewer.ui
@@ -7,36 +7,18 @@
<property name="title" translatable="yes">Color Profile Viewer</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="headerbar">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="show-close-button">True</property>
+ <property name="title" translatable="yes">Color Profile Viewer</property>
+ </object>
+ </child>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox2">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
- <property name="spacing">5</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="button_close">
- <property name="label">Close</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
<child>
<object class="GtkHBox" id="hbox5">
<property name="visible">True</property>
@@ -1158,8 +1140,5 @@
</child>
</object>
</child>
- <action-widgets>
- <action-widget response="0">button_close</action-widget>
- </action-widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]