mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
c2e4e1af73
Use window title, or custom title widget if it's set. Remove 'title' property. Update demos and tests to set the title on the window instead of headerbar.
136 lines
4.5 KiB
XML
136 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow" id="window1">
|
|
<property name="title" translatable="yes">Model Button</property>
|
|
<property name="resizable">0</property>
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar">
|
|
<property name="show-title-buttons">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-start">80</property>
|
|
<property name="margin-end">80</property>
|
|
<property name="margin-top">80</property>
|
|
<property name="margin-bottom">80</property>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_a</property>
|
|
<property name="label">_Color</property>
|
|
<property name="use-underline">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_b</property>
|
|
<property name="label">_Flavors</property>
|
|
<property name="use-underline">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="popover">thing_c</property>
|
|
<property name="label">_Tools</property>
|
|
<property name="use-underline">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkPopover" id="thing_a">
|
|
<style>
|
|
<class name="menu"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<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">
|
|
<style>
|
|
<class name="menu"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</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">
|
|
<style>
|
|
<class name="menu"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Hammer</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="modelbutton_tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Screwdriver</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="modelbutton_tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkModelButton">
|
|
<property name="text">Drill</property>
|
|
<property name="role">check</property>
|
|
<signal name="clicked" handler="modelbutton_tool_clicked"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|