Debian Codegraph @

demos/gtk-demo/demo.ui

raw
1 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2 <interface domain="gtk20">
3 <object class="GtkListStore" id="liststore1">
4 <columns>
5 <column type="gchararray"/>
6 <column type="gchararray"/>
7 <column type="gint"/>
8 <column type="gchararray"/>
9 </columns>
10 <data>
11 <row>
12 <col id="0" translatable="yes">John</col>
13 <col id="1" translatable="yes">Doe</col>
14 <col id="2">25</col>
15 <col id="3" translatable="yes">This is the John Doe row</col>
16 </row>
17 <row>
18 <col id="0" translatable="yes">Mary</col>
19 <col id="1" translatable="yes">Unknown</col>
20 <col id="2">50</col>
21 <col id="3" translatable="yes">This is the Mary Unknown row</col>
22 </row>
23 </data>
24 </object>
25 <object class="GtkUIManager" id="uimanager">
26 <child>
27 <object class="GtkActionGroup" id="DefaultActions">
28 <child>
29 <object class="GtkAction" id="Copy">
30 <property name="name">Copy</property>
31 <property name="tooltip" translatable="yes">Copy selected object into the clipboard</property>
32 <property name="stock_id">gtk-copy</property>
33 </object>
34 </child>
35 <child>
36 <object class="GtkAction" id="Cut">
37 <property name="name">Cut</property>
38 <property name="tooltip" translatable="yes">Cut selected object into the clipboard</property>
39 <property name="stock_id">gtk-cut</property>
40 </object>
41 </child>
42 <child>
43 <object class="GtkAction" id="EditMenu">
44 <property name="name">EditMenu</property>
45 <property name="label" translatable="yes">_Edit</property>
46 </object>
47 </child>
48 <child>
49 <object class="GtkAction" id="FileMenu">
50 <property name="name">FileMenu</property>
51 <property name="label" translatable="yes">_File</property>
52 </object>
53 </child>
54 <child>
55 <object class="GtkAction" id="New">
56 <property name="name">New</property>
57 <property name="tooltip" translatable="yes">Create a new file</property>
58 <property name="stock_id">gtk-new</property>
59 </object>
60 </child>
61 <child>
62 <object class="GtkAction" id="Open">
63 <property name="name">Open</property>
64 <property name="tooltip" translatable="yes">Open a file</property>
65 <property name="stock_id">gtk-open</property>
66 </object>
67 </child>
68 <child>
69 <object class="GtkAction" id="Paste">
70 <property name="name">Paste</property>
71 <property name="tooltip" translatable="yes">Paste object from the Clipboard</property>
72 <property name="stock_id">gtk-paste</property>
73 </object>
74 </child>
75 <child>
76 <object class="GtkAction" id="Quit">
77 <property name="name">Quit</property>
78 <property name="tooltip" translatable="yes">Quit the program</property>
79 <property name="stock_id">gtk-quit</property>
80 <signal handler="quit_activate" name="activate"/>
81 </object>
82 </child>
83 <child>
84 <object class="GtkAction" id="Save">
85 <property name="name">Save</property>
86 <property name="is_important">True</property>
87 <property name="tooltip" translatable="yes">Save a file</property>
88 <property name="stock_id">gtk-save</property>
89 </object>
90 </child>
91 <child>
92 <object class="GtkAction" id="SaveAs">
93 <property name="name">SaveAs</property>
94 <property name="tooltip" translatable="yes">Save with a different name</property>
95 <property name="stock_id">gtk-save-as</property>
96 </object>
97 </child>
98 <child>
99 <object class="GtkAction" id="HelpMenu">
100 <property name="name">HelpMenu</property>
101 <property name="label" translatable="yes">_Help</property>
102 </object>
103 </child>
104 <child>
105 <object class="GtkAction" id="About">
106 <property name="name">About</property>
107 <property name="stock_id">gtk-about</property>
108 <signal handler="about_activate" name="activate"/>
109 </object>
110 <accelerator key="F1"/>
111 </child>
112 </object>
113 </child>
114 <ui>
115 <menubar name="menubar1">
116 <menu action="FileMenu" name="FileMenu">
117 <menuitem action="New" name="New"/>
118 <menuitem action="Open" name="Open"/>
119 <menuitem action="Save" name="Save"/>
120 <menuitem action="SaveAs" name="SaveAs"/>
121 <separator/>
122 <menuitem action="Quit" name="Quit"/>
123 </menu>
124 <menu action="EditMenu">
125 <menuitem action="Copy" name="Copy"/>
126 <menuitem action="Cut" name="Cut"/>
127 <menuitem action="Paste" name="Paste"/>
128 </menu>
129 <menu action="HelpMenu" name="HelpMenu">
130 <menuitem action="About" name="About"/>
131 </menu>
132 </menubar>
133 <toolbar name="toolbar1">
134 <toolitem action="New" name="New"/>
135 <toolitem action="Open" name="Open"/>
136 <toolitem action="Save" name="Save"/>
137 <separator/>
138 <toolitem action="Copy" name="Copy"/>
139 <toolitem action="Cut" name="Cut"/>
140 <toolitem action="Paste" name="Paste"/>
141 </toolbar>
142 </ui>
143 </object>
144 <object class="GtkAboutDialog" id="aboutdialog1">
145 <property name="program-name" translatable="yes">GtkBuilder demo</property>
146 <accessibility>
147 <relation target="window1" type="subwindow-of"/>
148 </accessibility>
149 </object>
150 <object class="GtkWindow" id="window1">
151 <property name="default_height">250</property>
152 <property name="default_width">440</property>
153 <property name="title">GtkBuilder demo</property>
154 <child>
155 <object class="GtkVBox" id="vbox1">
156 <property name="visible">True</property>
157 <child>
158 <object constructor="uimanager" class="GtkMenuBar" id="menubar1">
159 <property name="visible">True</property>
160 <child internal-child="accessible">
161 <object class="AtkObject" id="a11y-menubar">
162 <property name="AtkObject::accessible-name">The menubar</property>
163 </object>
164 </child>
165 </object>
166 <packing>
167 <property name="expand">False</property>
168 </packing>
169 </child>
170 <child>
171 <object constructor="uimanager" class="GtkToolbar" id="toolbar1">
172 <property name="visible">True</property>
173 <child internal-child="accessible">
174 <object class="AtkObject" id="a11y-toolbar">
175 <property name="AtkObject::accessible-name">The toolbar</property>
176 </object>
177 </child>
178 </object>
179 <packing>
180 <property name="expand">False</property>
181 <property name="position">1</property>
182 </packing>
183 </child>
184 <child>
185 <object class="GtkScrolledWindow" id="scrolledwindow1">
186 <property name="hscrollbar_policy">automatic</property>
187 <property name="shadow_type">in</property>
188 <property name="visible">True</property>
189 <property name="vscrollbar_policy">automatic</property>
190 <child>
191 <object class="GtkTreeView" id="treeview1">
192 <property name="visible">True</property>
193 <property name="model">liststore1</property>
194 <property name="tooltip-column">3</property>
195 <child internal-child="accessible">
196 <object class="AtkObject" id="a11y-treeview">
197 <property name="AtkObject::accessible-name">Name list</property>
198 <property name="AtkObject::accessible-description">
199 A list of person with name, surname and age columns
200 </property>
201 </object>
202 </child>
203 <child>
204 <object class="GtkTreeViewColumn" id="column1">
205 <property name="title">Name</property>
206 <child>
207 <object class="GtkCellRendererText" id="renderer1"/>
208 <attributes>
209 <attribute name="text">0</attribute>
210 </attributes>
211 </child>
212 </object>
213 </child>
214 <child>
215 <object class="GtkTreeViewColumn" id="column2">
216 <property name="title">Surname</property>
217 <child>
218 <object class="GtkCellRendererText" id="renderer2"/>
219 <attributes>
220 <attribute name="text">1</attribute>
221 </attributes>
222 </child>
223 </object>
224 </child>
225 <child>
226 <object class="GtkTreeViewColumn" id="column3">
227 <property name="title">Age</property>
228 <child>
229 <object class="GtkCellRendererText" id="renderer3"/>
230 <attributes>
231 <attribute name="text">2</attribute>
232 </attributes>
233 </child>
234 </object>
235 </child>
236 </object>
237 </child>
238 <accessibility>
239 <action action_name="move-cursor" description="Move the cursor to select another person."/>
240 </accessibility>
241 </object>
242 <packing>
243 <property name="position">2</property>
244 </packing>
245 </child>
246 <child>
247 <object class="GtkStatusbar" id="statusbar1">
248 <property name="visible">True</property>
249 </object>
250 <packing>
251 <property name="expand">False</property>
252 <property name="position">3</property>
253 </packing>
254 </child>
255 </object>
256 </child>
257 </object>
258 </interface>