mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
140 lines
4.6 KiB
XML
140 lines
4.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow" id="window1">
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar">
|
|
<property name="show-title-buttons">1</property>
|
|
<property name="title" translatable="yes">Model Button</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin">80</property>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_a</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Color</property>
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_b</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Flavors</property>
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_c</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Tools</property>
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkPopover" id="thing_a">
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="margin">10</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="action-name">win.color</property>
|
|
<property name="action-target">'red'</property>
|
|
<property name="text">Red</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="action-name">win.color</property>
|
|
<property name="action-target">'green'</property>
|
|
<property name="text">Green</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="action-name">win.color</property>
|
|
<property name="action-target">'blue'</property>
|
|
<property name="text">Blue</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkPopover" id="thing_b">
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="margin">10</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="action-name">win.chocolate</property>
|
|
<property name="text">Chocolate</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="action-name">win.vanilla</property>
|
|
<property name="text">Vanilla</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparator"/>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<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">
|
|
<property name="margin">10</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Hammer</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Screwdriver</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Drill</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|