| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="libadwaita" version="1.0"/> |
| 5 |
<menu id="sample_menu"> |
| 6 |
<section> |
| 7 |
<item> |
| 8 |
<attribute name="label" translatable="yes">Item 1</attribute> |
| 9 |
</item> |
| 10 |
<item> |
| 11 |
<attribute name="label" translatable="yes">Item 2</attribute> |
| 12 |
</item> |
| 13 |
<item> |
| 14 |
<attribute name="label" translatable="yes">Item 3</attribute> |
| 15 |
</item> |
| 16 |
</section> |
| 17 |
</menu> |
| 18 |
<template class="AdwDemoPageButtons" parent="AdwBin"> |
| 19 |
<property name="child"> |
| 20 |
<object class="AdwToolbarView"> |
| 21 |
<child type="top"> |
| 22 |
<object class="AdwHeaderBar"> |
| 23 |
<property name="show-title">False</property> |
| 24 |
</object> |
| 25 |
</child> |
| 26 |
<property name="content"> |
| 27 |
<object class="AdwStatusPage"> |
| 28 |
<property name="title" translatable="yes">Buttons</property> |
| 29 |
<property name="description" translatable="yes">Button helper widgets</property> |
| 30 |
<property name="icon-name">widget-buttons-symbolic</property> |
| 31 |
<property name="child"> |
| 32 |
<object class="AdwClamp"> |
| 33 |
<property name="maximum-size">400</property> |
| 34 |
<property name="tightening-threshold">300</property> |
| 35 |
<property name="child"> |
| 36 |
<object class="GtkBox"> |
| 37 |
<property name="orientation">vertical</property> |
| 38 |
<child> |
| 39 |
<object class="GtkGrid"> |
| 40 |
<property name="halign">center</property> |
| 41 |
<property name="column-spacing">12</property> |
| 42 |
<property name="row-spacing">12</property> |
| 43 |
<child> |
| 44 |
<object class="AdwSplitButton"> |
| 45 |
<property name="icon-name">document-open-symbolic</property> |
| 46 |
<property name="menu-model">sample_menu</property> |
| 47 |
<property name="tooltip-text" translatable="yes">Open</property> |
| 48 |
<layout> |
| 49 |
<property name="column">0</property> |
| 50 |
<property name="row">0</property> |
| 51 |
</layout> |
| 52 |
</object> |
| 53 |
</child> |
| 54 |
<child> |
| 55 |
<object class="AdwSplitButton"> |
| 56 |
<property name="icon-name">document-open-symbolic</property> |
| 57 |
<property name="menu-model">sample_menu</property> |
| 58 |
<property name="tooltip-text" translatable="yes">Open</property> |
| 59 |
<style> |
| 60 |
<class name="flat"/> |
| 61 |
</style> |
| 62 |
<layout> |
| 63 |
<property name="column">0</property> |
| 64 |
<property name="row">1</property> |
| 65 |
</layout> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
<child> |
| 69 |
<object class="AdwSplitButton"> |
| 70 |
<property name="label" translatable="yes">_Open</property> |
| 71 |
<property name="use-underline">True</property> |
| 72 |
<property name="can-shrink">True</property> |
| 73 |
<property name="menu-model">sample_menu</property> |
| 74 |
<layout> |
| 75 |
<property name="column">1</property> |
| 76 |
<property name="row">0</property> |
| 77 |
</layout> |
| 78 |
</object> |
| 79 |
</child> |
| 80 |
<child> |
| 81 |
<object class="AdwSplitButton"> |
| 82 |
<property name="label" translatable="yes">_Open</property> |
| 83 |
<property name="use-underline">True</property> |
| 84 |
<property name="can-shrink">True</property> |
| 85 |
<property name="menu-model">sample_menu</property> |
| 86 |
<style> |
| 87 |
<class name="flat"/> |
| 88 |
</style> |
| 89 |
<layout> |
| 90 |
<property name="column">1</property> |
| 91 |
<property name="row">1</property> |
| 92 |
</layout> |
| 93 |
</object> |
| 94 |
</child> |
| 95 |
<child> |
| 96 |
<object class="AdwSplitButton"> |
| 97 |
<property name="child"> |
| 98 |
<object class="AdwButtonContent"> |
| 99 |
<property name="icon-name">document-open-symbolic</property> |
| 100 |
<property name="label" translatable="yes">_Open</property> |
| 101 |
<property name="use-underline">True</property> |
| 102 |
<property name="can-shrink">True</property> |
| 103 |
</object> |
| 104 |
</property> |
| 105 |
<property name="menu-model">sample_menu</property> |
| 106 |
<layout> |
| 107 |
<property name="column">2</property> |
| 108 |
<property name="row">0</property> |
| 109 |
</layout> |
| 110 |
</object> |
| 111 |
</child> |
| 112 |
<child> |
| 113 |
<object class="AdwSplitButton"> |
| 114 |
<property name="child"> |
| 115 |
<object class="AdwButtonContent"> |
| 116 |
<property name="icon-name">document-open-symbolic</property> |
| 117 |
<property name="label" translatable="yes">_Open</property> |
| 118 |
<property name="use-underline">True</property> |
| 119 |
<property name="can-shrink">True</property> |
| 120 |
</object> |
| 121 |
</property> |
| 122 |
<property name="menu-model">sample_menu</property> |
| 123 |
<style> |
| 124 |
<class name="flat"/> |
| 125 |
</style> |
| 126 |
<layout> |
| 127 |
<property name="column">2</property> |
| 128 |
<property name="row">1</property> |
| 129 |
</layout> |
| 130 |
</object> |
| 131 |
</child> |
| 132 |
</object> |
| 133 |
</child> |
| 134 |
</object> |
| 135 |
</property> |
| 136 |
</object> |
| 137 |
</property> |
| 138 |
</object> |
| 139 |
</property> |
| 140 |
</object> |
| 141 |
</property> |
| 142 |
</template> |
| 143 |
</interface> |