| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="DemoApplicationWindow" parent="GtkApplicationWindow"> |
| 4 |
<property name="title" translatable="yes">Application Class</property> |
| 5 |
<property name="default-width">200</property> |
| 6 |
<property name="default-height">200</property> |
| 7 |
<property name="icon-name">document-open</property> |
| 8 |
<property name="session-id">application-main</property> |
| 9 |
<property name="child"> |
| 10 |
<object class="GtkGrid"> |
| 11 |
<child> |
| 12 |
<object class="GtkBox"> |
| 13 |
<property name="hexpand">1</property> |
| 14 |
<child> |
| 15 |
<object class="GtkMenuButton" id="menubutton"> |
| 16 |
<property name="icon-name">document-open</property> |
| 17 |
</object> |
| 18 |
</child> |
| 19 |
<child> |
| 20 |
<object class="GtkButton"> |
| 21 |
<property name="icon-name">application-exit</property> |
| 22 |
<property name="action-name">app.quit</property> |
| 23 |
</object> |
| 24 |
</child> |
| 25 |
<child> |
| 26 |
<object class="GtkSeparator"/> |
| 27 |
</child> |
| 28 |
<child> |
| 29 |
<object class="GtkButton"> |
| 30 |
<property name="icon-name">applications-other</property> |
| 31 |
<property name="action-name">win.logo</property> |
| 32 |
</object> |
| 33 |
</child> |
| 34 |
<layout> |
| 35 |
<property name="column">0</property> |
| 36 |
<property name="row">0</property> |
| 37 |
</layout> |
| 38 |
</object> |
| 39 |
</child> |
| 40 |
<child> |
| 41 |
<object class="GtkInfoBar" id="infobar"> |
| 42 |
<property name="visible">0</property> |
| 43 |
<property name="hexpand">1</property> |
| 44 |
<child> |
| 45 |
<object class="GtkLabel" id="message"> |
| 46 |
<property name="hexpand">1</property> |
| 47 |
</object> |
| 48 |
</child> |
| 49 |
<child type="action"> |
| 50 |
<object class="GtkButton"> |
| 51 |
<property name="valign">center</property> |
| 52 |
<property name="label" translatable="yes">_OK</property> |
| 53 |
<property name="use-underline">1</property> |
| 54 |
<signal name="clicked" handler="clicked_cb"/> |
| 55 |
</object> |
| 56 |
</child> |
| 57 |
<layout> |
| 58 |
<property name="column">0</property> |
| 59 |
<property name="row">1</property> |
| 60 |
</layout> |
| 61 |
</object> |
| 62 |
</child> |
| 63 |
<child> |
| 64 |
<object class="GtkScrolledWindow"> |
| 65 |
<property name="has-frame">1</property> |
| 66 |
<property name="child"> |
| 67 |
<object class="GtkTextView"> |
| 68 |
<property name="hexpand">1</property> |
| 69 |
<property name="vexpand">1</property> |
| 70 |
<property name="buffer">buffer</property> |
| 71 |
</object> |
| 72 |
</property> |
| 73 |
<layout> |
| 74 |
<property name="column">0</property> |
| 75 |
<property name="row">2</property> |
| 76 |
</layout> |
| 77 |
</object> |
| 78 |
</child> |
| 79 |
<child> |
| 80 |
<object class="GtkLabel" id="status"> |
| 81 |
<property name="hexpand">1</property> |
| 82 |
<property name="xalign">0</property> |
| 83 |
<property name="margin-start">2</property> |
| 84 |
<property name="margin-end">2</property> |
| 85 |
<property name="margin-top">2</property> |
| 86 |
<property name="margin-bottom">2</property> |
| 87 |
<layout> |
| 88 |
<property name="column">0</property> |
| 89 |
<property name="row">3</property> |
| 90 |
</layout> |
| 91 |
</object> |
| 92 |
</child> |
| 93 |
</object> |
| 94 |
</property> |
| 95 |
</template> |
| 96 |
<menu id="toolmenu"> |
| 97 |
<item> |
| 98 |
<attribute name="label">File1</attribute> |
| 99 |
<attribute name="action">win.file1</attribute> |
| 100 |
</item> |
| 101 |
</menu> |
| 102 |
<object class="GtkTextBuffer" id="buffer"> |
| 103 |
<signal name="changed" handler="update_statusbar"/> |
| 104 |
<signal name="mark-set" handler="mark_set_callback"/> |
| 105 |
</object> |
| 106 |
</interface> |