| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<!-- interface-requires gtk+ 3.6 --> |
| 4 |
<object class="GtkWindow" id="window1"> |
| 5 |
<child type="titlebar"> |
| 6 |
<object class="GtkHeaderBar"> |
| 7 |
<property name="visible">1</property> |
| 8 |
<property name="show-close-button">1</property> |
| 9 |
<property name="title" translatable="yes">Model Button</property> |
| 10 |
</object> |
| 11 |
</child> |
| 12 |
<child> |
| 13 |
<object class="GtkBox"> |
| 14 |
<property name="visible">1</property> |
| 15 |
<property name="orientation">vertical</property> |
| 16 |
<property name="margin">80</property> |
| 17 |
<child> |
| 18 |
<object class="GtkMenuButton"> |
| 19 |
<property name="visible">1</property> |
| 20 |
<property name="popover">thing_a</property> |
| 21 |
<child> |
| 22 |
<object class="GtkLabel"> |
| 23 |
<property name="visible">1</property> |
| 24 |
<property name="label">Color</property> |
| 25 |
<property name="hexpand">1</property> |
| 26 |
</object> |
| 27 |
</child> |
| 28 |
</object> |
| 29 |
</child> |
| 30 |
<child> |
| 31 |
<object class="GtkMenuButton"> |
| 32 |
<property name="visible">1</property> |
| 33 |
<property name="popover">thing_b</property> |
| 34 |
<child> |
| 35 |
<object class="GtkLabel"> |
| 36 |
<property name="visible">1</property> |
| 37 |
<property name="label">Flavors</property> |
| 38 |
<property name="hexpand">1</property> |
| 39 |
</object> |
| 40 |
</child> |
| 41 |
</object> |
| 42 |
</child> |
| 43 |
<child> |
| 44 |
<object class="GtkMenuButton"> |
| 45 |
<property name="visible">1</property> |
| 46 |
<property name="popover">thing_c</property> |
| 47 |
<child> |
| 48 |
<object class="GtkLabel"> |
| 49 |
<property name="visible">1</property> |
| 50 |
<property name="label">Tools</property> |
| 51 |
<property name="hexpand">1</property> |
| 52 |
</object> |
| 53 |
</child> |
| 54 |
</object> |
| 55 |
</child> |
| 56 |
</object> |
| 57 |
</child> |
| 58 |
</object> |
| 59 |
<object class="GtkPopover" id="thing_a"> |
| 60 |
<child> |
| 61 |
<object class="GtkBox"> |
| 62 |
<property name="visible">1</property> |
| 63 |
<property name="margin">10</property> |
| 64 |
<property name="orientation">vertical</property> |
| 65 |
<child> |
| 66 |
<object class="GtkModelButton"> |
| 67 |
<property name="visible">1</property> |
| 68 |
<property name="action-name">win.color</property> |
| 69 |
<property name="action-target">'red'</property> |
| 70 |
<property name="text">Red</property> |
| 71 |
<property name="inverted">1</property> |
| 72 |
</object> |
| 73 |
</child> |
| 74 |
<child> |
| 75 |
<object class="GtkModelButton"> |
| 76 |
<property name="visible">1</property> |
| 77 |
<property name="action-name">win.color</property> |
| 78 |
<property name="action-target">'green'</property> |
| 79 |
<property name="text">Green</property> |
| 80 |
<property name="inverted">1</property> |
| 81 |
</object> |
| 82 |
</child> |
| 83 |
<child> |
| 84 |
<object class="GtkModelButton"> |
| 85 |
<property name="visible">1</property> |
| 86 |
<property name="action-name">win.color</property> |
| 87 |
<property name="action-target">'blue'</property> |
| 88 |
<property name="text">Blue</property> |
| 89 |
<property name="inverted">1</property> |
| 90 |
</object> |
| 91 |
</child> |
| 92 |
</object> |
| 93 |
</child> |
| 94 |
</object> |
| 95 |
<object class="GtkPopover" id="thing_b"> |
| 96 |
<child> |
| 97 |
<object class="GtkBox"> |
| 98 |
<property name="visible">1</property> |
| 99 |
<property name="margin">10</property> |
| 100 |
<property name="orientation">vertical</property> |
| 101 |
<property name="spacing">10</property> |
| 102 |
<child> |
| 103 |
<object class="GtkModelButton"> |
| 104 |
<property name="visible">1</property> |
| 105 |
<property name="action-name">win.chocolate</property> |
| 106 |
<property name="text">Chocolate</property> |
| 107 |
</object> |
| 108 |
</child> |
| 109 |
<child> |
| 110 |
<object class="GtkModelButton"> |
| 111 |
<property name="visible">1</property> |
| 112 |
<property name="action-name">win.vanilla</property> |
| 113 |
<property name="text">Vanilla</property> |
| 114 |
</object> |
| 115 |
</child> |
| 116 |
<child> |
| 117 |
<object class="GtkSeparator"> |
| 118 |
<property name="visible">1</property> |
| 119 |
</object> |
| 120 |
</child> |
| 121 |
<child> |
| 122 |
<object class="GtkModelButton"> |
| 123 |
<property name="visible">1</property> |
| 124 |
<property name="action-name">win.sprinkles</property> |
| 125 |
<property name="text">Add Sprinkles</property> |
| 126 |
</object> |
| 127 |
</child> |
| 128 |
</object> |
| 129 |
</child> |
| 130 |
</object> |
| 131 |
<object class="GtkPopover" id="thing_c"> |
| 132 |
<child> |
| 133 |
<object class="GtkBox"> |
| 134 |
<property name="visible">1</property> |
| 135 |
<property name="margin">10</property> |
| 136 |
<property name="orientation">vertical</property> |
| 137 |
<property name="spacing">10</property> |
| 138 |
<child> |
| 139 |
<object class="GtkModelButton"> |
| 140 |
<property name="visible">1</property> |
| 141 |
<property name="text">Hammer</property> |
| 142 |
<property name="role">check</property> |
| 143 |
<signal name="clicked" handler="tool_clicked"/> |
| 144 |
</object> |
| 145 |
</child> |
| 146 |
<child> |
| 147 |
<object class="GtkModelButton"> |
| 148 |
<property name="visible">1</property> |
| 149 |
<property name="text">Screwdriver</property> |
| 150 |
<property name="role">check</property> |
| 151 |
<signal name="clicked" handler="tool_clicked"/> |
| 152 |
</object> |
| 153 |
</child> |
| 154 |
<child> |
| 155 |
<object class="GtkModelButton"> |
| 156 |
<property name="visible">1</property> |
| 157 |
<property name="text">Drill</property> |
| 158 |
<property name="role">check</property> |
| 159 |
<signal name="clicked" handler="tool_clicked"/> |
| 160 |
</object> |
| 161 |
</child> |
| 162 |
</object> |
| 163 |
</child> |
| 164 |
</object> |
| 165 |
</interface> |