summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/main.ui
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-12-02 20:35:57 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-12-03 10:50:07 -0500
commite5726e97f40ddd1def220b176880dc6df3e90c35 (patch)
tree36c40e01188b999b0359ad7914bd254bab6f262e /demos/gtk-demo/main.ui
parentb57109adc84ac33434c5f514f65f0a381350ce17 (diff)
downloadgtk+-e5726e97f40ddd1def220b176880dc6df3e90c35.tar.gz
demo: Add a GtkHeaderBar
Diffstat (limited to 'demos/gtk-demo/main.ui')
-rw-r--r--demos/gtk-demo/main.ui30
1 files changed, 28 insertions, 2 deletions
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index 060ff4bde6..dc322401fd 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <!-- interface-requires gtk+ 3.0 -->
+ <!-- interface-requires gtk+ 3.10 -->
<menu id="appmenu">
<section>
<item>
@@ -16,7 +16,6 @@
</item>
</section>
</menu>
- <!-- interface-requires gtk+ 3.10 -->
<object class="GtkTreeStore" id="treestore">
<columns>
<!-- column-name NAME -->
@@ -38,6 +37,33 @@
<property name="title">GTK+ Demo</property>
<signal name="delete-event" handler="gtk_false" swapped="no"/>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
+ <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>
+ <child>
+ <object class="GtkButton" id="run_button">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <property name="can_focus">False</property>
+ <property name="action_name">win.run</property>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child>
+ <object class="GtkLabel" id="run_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Run</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
+ </child>
+ </object>
+ </child>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>