gtk2/demos/gtk-demo/modelbutton.ui

163 lines
5.6 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.6 -->
<object class="GtkWindow" id="window1">
<child type="titlebar">
<object class="GtkHeaderBar">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="show-close-button">1</property>
<property name="title" translatable="yes">Model Button</property>
</object>
</child>
<child>
<object class="GtkBox">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="orientation">vertical</property>
<property name="margin">80</property>
<child>
<object class="GtkMenuButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="popover">thing_a</property>
<child>
<object class="GtkLabel">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label">Color</property>
2015-09-09 21:34:32 +00:00
<property name="hexpand">1</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="popover">thing_b</property>
<child>
<object class="GtkLabel">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label">Flavors</property>
2015-09-09 21:34:32 +00:00
<property name="hexpand">1</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="popover">thing_c</property>
<child>
<object class="GtkLabel">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label">Tools</property>
2015-09-09 21:34:32 +00:00
<property name="hexpand">1</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
<object class="GtkPopover" id="thing_a">
<child>
<object class="GtkBox">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="margin">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.color</property>
<property name="text">Red</property>
2015-09-09 21:34:32 +00:00
<property name="inverted">1</property>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.color</property>
<property name="text">Green</property>
2015-09-09 21:34:32 +00:00
<property name="inverted">1</property>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.color</property>
<property name="text">Blue</property>
2015-09-09 21:34:32 +00:00
<property name="inverted">1</property>
</object>
</child>
</object>
</child>
</object>
<object class="GtkPopover" id="thing_b">
<child>
<object class="GtkBox">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="margin">10</property>
<property name="orientation">vertical</property>
<property name="spacing">10</property>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.chocolate</property>
<property name="text">Chocolate</property>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.vanilla</property>
<property name="text">Vanilla</property>
</object>
</child>
<child>
<object class="GtkSeparator">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="action-name">win.sprinkles</property>
<property name="text">Add Sprinkles</property>
</object>
</child>
</object>
</child>
</object>
<object class="GtkPopover" id="thing_c">
<child>
<object class="GtkBox">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="margin">10</property>
<property name="orientation">vertical</property>
<property name="spacing">10</property>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="text">Hammer</property>
<property name="role">check</property>
<signal name="clicked" handler="tool_clicked"/>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="text">Screwdriver</property>
<property name="role">check</property>
<signal name="clicked" handler="tool_clicked"/>
</object>
</child>
<child>
<object class="GtkModelButton">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="text">Drill</property>
<property name="role">check</property>
<signal name="clicked" handler="tool_clicked"/>
</object>
</child>
</object>
</child>
</object>
</interface>