| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<object class="GtkWindow" id="window"> |
| 4 |
<property name="title" translatable="yes">List Box — Controls</property> |
| 5 |
<property name="default-height">400</property> |
| 6 |
<property name="child"> |
| 7 |
<object class="GtkScrolledWindow"> |
| 8 |
<property name="hscrollbar-policy">never</property> |
| 9 |
<property name="min-content-height">200</property> |
| 10 |
<property name="hexpand">0</property> |
| 11 |
<property name="vexpand">1</property> |
| 12 |
<property name="child"> |
| 13 |
<object class="GtkViewport"> |
| 14 |
<property name="scroll-to-focus">1</property> |
| 15 |
<property name="child"> |
| 16 |
<object class="GtkBox"> |
| 17 |
<property name="orientation">vertical</property> |
| 18 |
<property name="margin-start">60</property> |
| 19 |
<property name="margin-end">60</property> |
| 20 |
<property name="margin-top">30</property> |
| 21 |
<property name="margin-bottom">30</property> |
| 22 |
<child> |
| 23 |
<object class="GtkLabel"> |
| 24 |
<property name="label">Group 1</property> |
| 25 |
<property name="xalign">0</property> |
| 26 |
<property name="margin-bottom">10</property> |
| 27 |
<style> |
| 28 |
<class name="title-2"/> |
| 29 |
</style> |
| 30 |
</object> |
| 31 |
</child> |
| 32 |
<child> |
| 33 |
<object class="GtkListBox"> |
| 34 |
<property name="selection-mode">none</property> |
| 35 |
<signal name="row-activated" handler="row_activated"/> |
| 36 |
<style> |
| 37 |
<class name="rich-list"/> |
| 38 |
<class name="boxed-list"/> |
| 39 |
</style> |
| 40 |
|
| 41 |
<child> |
| 42 |
<object class="GtkListBoxRow"> |
| 43 |
<property name="selectable">0</property> |
| 44 |
<child> |
| 45 |
<object class="GtkBox"> |
| 46 |
<child> |
| 47 |
<object class="GtkLabel" id="switch_label"> |
| 48 |
<property name="label" translatable="yes">Switch</property> |
| 49 |
<property name="xalign">0</property> |
| 50 |
<property name="halign">start</property> |
| 51 |
<property name="valign">center</property> |
| 52 |
<property name="hexpand">1</property> |
| 53 |
<property name="mnemonic-widget">switch</property> |
| 54 |
</object> |
| 55 |
</child> |
| 56 |
<child> |
| 57 |
<object class="GtkSwitch" id="switch"> |
| 58 |
<property name="halign">end</property> |
| 59 |
<property name="valign">center</property> |
| 60 |
</object> |
| 61 |
</child> |
| 62 |
</object> |
| 63 |
</child> |
| 64 |
</object> |
| 65 |
</child> |
| 66 |
|
| 67 |
<child> |
| 68 |
<object class="GtkListBoxRow"> |
| 69 |
<property name="selectable">0</property> |
| 70 |
<child> |
| 71 |
<object class="GtkBox"> |
| 72 |
<child> |
| 73 |
<object class="GtkLabel" id="check_label"> |
| 74 |
<property name="label" translatable="yes">Check</property> |
| 75 |
<property name="xalign">0</property> |
| 76 |
<property name="halign">start</property> |
| 77 |
<property name="valign">center</property> |
| 78 |
<property name="hexpand">1</property> |
| 79 |
<property name="mnemonic-widget">check</property> |
| 80 |
</object> |
| 81 |
</child> |
| 82 |
<child> |
| 83 |
<object class="GtkCheckButton" id="check"> |
| 84 |
<property name="halign">end</property> |
| 85 |
<property name="valign">center</property> |
| 86 |
<property name="margin-start">10</property> |
| 87 |
<property name="margin-end">10</property> |
| 88 |
<property name="active">1</property> |
| 89 |
</object> |
| 90 |
</child> |
| 91 |
</object> |
| 92 |
</child> |
| 93 |
</object> |
| 94 |
</child> |
| 95 |
|
| 96 |
<child> |
| 97 |
<object class="GtkListBoxRow"> |
| 98 |
<property name="selectable">0</property> |
| 99 |
<child> |
| 100 |
<object class="GtkBox"> |
| 101 |
<child> |
| 102 |
<object class="GtkLabel" id="image_label"> |
| 103 |
<property name="label" translatable="yes">Click here!</property> |
| 104 |
<property name="xalign">0</property> |
| 105 |
<property name="halign">start</property> |
| 106 |
<property name="valign">center</property> |
| 107 |
<property name="hexpand">1</property> |
| 108 |
</object> |
| 109 |
</child> |
| 110 |
<child> |
| 111 |
<object class="GtkImage" id="image"> |
| 112 |
<property name="icon-name">object-select-symbolic</property> |
| 113 |
<property name="halign">end</property> |
| 114 |
<property name="valign">center</property> |
| 115 |
<property name="margin-start">10</property> |
| 116 |
<property name="margin-end">10</property> |
| 117 |
<property name="opacity">0</property> |
| 118 |
<property name="accessible-role">status</property> |
| 119 |
</object> |
| 120 |
</child> |
| 121 |
</object> |
| 122 |
</child> |
| 123 |
</object> |
| 124 |
</child> |
| 125 |
</object> |
| 126 |
</child> |
| 127 |
|
| 128 |
<child> |
| 129 |
<object class="GtkLabel"> |
| 130 |
<property name="margin-top">30</property> |
| 131 |
<property name="margin-bottom">10</property> |
| 132 |
<property name="label">Group 2</property> |
| 133 |
<property name="xalign">0</property> |
| 134 |
<style> |
| 135 |
<class name="title-2"/> |
| 136 |
</style> |
| 137 |
</object> |
| 138 |
</child> |
| 139 |
<child> |
| 140 |
<object class="GtkListBox"> |
| 141 |
<property name="selection-mode">none</property> |
| 142 |
<style> |
| 143 |
<class name="rich-list"/> |
| 144 |
<class name="boxed-list"/> |
| 145 |
</style> |
| 146 |
|
| 147 |
<child> |
| 148 |
<object class="GtkListBoxRow"> |
| 149 |
<property name="selectable">0</property> |
| 150 |
<property name="activatable">0</property> |
| 151 |
<child> |
| 152 |
<object class="GtkBox"> |
| 153 |
<child> |
| 154 |
<object class="GtkLabel" id="scale_label"> |
| 155 |
<property name="label" translatable="yes">Scale</property> |
| 156 |
<property name="xalign">0</property> |
| 157 |
<property name="halign">start</property> |
| 158 |
<property name="valign">center</property> |
| 159 |
<property name="hexpand">1</property> |
| 160 |
<property name="mnemonic-widget">scale</property> |
| 161 |
</object> |
| 162 |
</child> |
| 163 |
<child> |
| 164 |
<object class="GtkScale" id="scale"> |
| 165 |
<property name="halign">end</property> |
| 166 |
<property name="valign">center</property> |
| 167 |
<property name="draw-value">0</property> |
| 168 |
<property name="width-request">150</property> |
| 169 |
<property name="adjustment"> |
| 170 |
<object class="GtkAdjustment"> |
| 171 |
<property name="upper">100</property> |
| 172 |
<property name="value">50</property> |
| 173 |
<property name="step-increment">1</property> |
| 174 |
<property name="page-increment">10</property> |
| 175 |
</object> |
| 176 |
</property> |
| 177 |
</object> |
| 178 |
</child> |
| 179 |
</object> |
| 180 |
</child> |
| 181 |
</object> |
| 182 |
</child> |
| 183 |
|
| 184 |
<child> |
| 185 |
<object class="GtkListBoxRow"> |
| 186 |
<property name="selectable">0</property> |
| 187 |
<property name="activatable">0</property> |
| 188 |
<child> |
| 189 |
<object class="GtkBox"> |
| 190 |
<child> |
| 191 |
<object class="GtkLabel" id="spin_label"> |
| 192 |
<property name="label" translatable="yes">Spinbutton</property> |
| 193 |
<property name="xalign">0</property> |
| 194 |
<property name="halign">start</property> |
| 195 |
<property name="valign">center</property> |
| 196 |
<property name="hexpand">1</property> |
| 197 |
<property name="mnemonic-widget">spin</property> |
| 198 |
</object> |
| 199 |
</child> |
| 200 |
<child> |
| 201 |
<object class="GtkSpinButton" id="spin"> |
| 202 |
<property name="halign">end</property> |
| 203 |
<property name="valign">center</property> |
| 204 |
<property name="adjustment"> |
| 205 |
<object class="GtkAdjustment"> |
| 206 |
<property name="upper">100</property> |
| 207 |
<property name="value">50</property> |
| 208 |
<property name="step-increment">1</property> |
| 209 |
<property name="page-increment">10</property> |
| 210 |
</object> |
| 211 |
</property> |
| 212 |
</object> |
| 213 |
</child> |
| 214 |
</object> |
| 215 |
</child> |
| 216 |
</object> |
| 217 |
</child> |
| 218 |
<child> |
| 219 |
<object class="GtkListBoxRow"> |
| 220 |
<property name="selectable">0</property> |
| 221 |
<property name="activatable">0</property> |
| 222 |
<child> |
| 223 |
<object class="GtkBox"> |
| 224 |
<child> |
| 225 |
<object class="GtkLabel" id="dropdown_label"> |
| 226 |
<property name="label" translatable="yes">Dropdown</property> |
| 227 |
<property name="xalign">0</property> |
| 228 |
<property name="halign">start</property> |
| 229 |
<property name="valign">center</property> |
| 230 |
<property name="hexpand">1</property> |
| 231 |
<property name="mnemonic-widget">dropdown</property> |
| 232 |
</object> |
| 233 |
</child> |
| 234 |
<child> |
| 235 |
<object class="GtkDropDown" id="dropdown"> |
| 236 |
<property name="halign">end</property> |
| 237 |
<property name="valign">center</property> |
| 238 |
<property name="model"> |
| 239 |
<object class="GtkStringList"> |
| 240 |
<property name="strings">Choice 1 |
| 241 |
Choice 2 |
| 242 |
Choice 3 |
| 243 |
Choice 4</property> |
| 244 |
</object> |
| 245 |
</property> |
| 246 |
</object> |
| 247 |
</child> |
| 248 |
</object> |
| 249 |
</child> |
| 250 |
</object> |
| 251 |
</child> |
| 252 |
|
| 253 |
<child> |
| 254 |
<object class="GtkListBoxRow"> |
| 255 |
<property name="selectable">0</property> |
| 256 |
<property name="activatable">0</property> |
| 257 |
<child> |
| 258 |
<object class="GtkBox"> |
| 259 |
<child> |
| 260 |
<object class="GtkLabel" id="entry_label"> |
| 261 |
<property name="label" translatable="yes">Entry</property> |
| 262 |
<property name="xalign">0</property> |
| 263 |
<property name="halign">start</property> |
| 264 |
<property name="valign">center</property> |
| 265 |
<property name="hexpand">1</property> |
| 266 |
<property name="mnemonic-widget">entry</property> |
| 267 |
</object> |
| 268 |
</child> |
| 269 |
<child> |
| 270 |
<object class="GtkEntry" id="entry"> |
| 271 |
<property name="halign">end</property> |
| 272 |
<property name="valign">center</property> |
| 273 |
<property name="placeholder-text">Type here…</property> |
| 274 |
</object> |
| 275 |
</child> |
| 276 |
</object> |
| 277 |
</child> |
| 278 |
</object> |
| 279 |
</child> |
| 280 |
|
| 281 |
</object> |
| 282 |
</child> |
| 283 |
</object> |
| 284 |
</property> |
| 285 |
</object> |
| 286 |
</property> |
| 287 |
</object> |
| 288 |
</property> |
| 289 |
</object> |
| 290 |
<object class="GtkSizeGroup"> |
| 291 |
<property name="mode">horizontal</property> |
| 292 |
<widgets> |
| 293 |
<widget name="switch_label"/> |
| 294 |
<widget name="check_label"/> |
| 295 |
<widget name="image_label"/> |
| 296 |
<widget name="scale_label"/> |
| 297 |
<widget name="spin_label"/> |
| 298 |
<widget name="dropdown_label"/> |
| 299 |
<widget name="entry_label"/> |
| 300 |
</widgets> |
| 301 |
</object> |
| 302 |
</interface> |