Debian Codegraph @

demos/gtk-demo/menus.ui

raw
1 <?xml version="1.0"?>
2 <interface>
3 <menu id="appmenu">
4 <section>
5 <item>
6 <attribute name="label" translatable="yes">_New</attribute>
7 <attribute name="action">app.new</attribute>
8 <attribute name="accel">&lt;Primary&gt;n</attribute>
9 </item>
10 <item>
11 <attribute name="label" translatable="yes">_Open</attribute>
12 <attribute name="action">app.open</attribute>
13 </item>
14 <item>
15 <attribute name="label" translatable="yes">_Save</attribute>
16 <attribute name="action">app.save</attribute>
17 <attribute name="accel">&lt;Primary&gt;s</attribute>
18 </item>
19 <item>
20 <attribute name="label" translatable="yes">Save _As...</attribute>
21 <attribute name="action">app.save-as</attribute>
22 <attribute name="accel">&lt;Primary&gt;s</attribute>
23 </item>
24 </section>
25 <section>
26 <item>
27 <attribute name="label" translatable="yes">_Quit</attribute>
28 <attribute name="action">app.quit</attribute>
29 <attribute name="accel">&lt;Primary&gt;q</attribute>
30 </item>
31 </section>
32 </menu>
33 <menu id="menubar">
34 <submenu>
35 <attribute name="label" translatable="yes">_Preferences</attribute>
36 <section>
37 <item>
38 <attribute name="label" translatable="yes">_Prefer Dark Theme</attribute>
39 <attribute name="action">app.dark</attribute>
40 </item>
41 <item>
42 <attribute name="label" translatable="yes">_Hide Titlebar when maximized</attribute>
43 <attribute name="action">win.titlebar</attribute>
44 </item>
45 <submenu>
46 <attribute name="label" translatable="yes">_Color</attribute>
47 <section>
48 <item>
49 <attribute name="label" translatable="yes">_Red</attribute>
50 <attribute name="action">app.color</attribute>
51 <attribute name="target">red</attribute>
52 <attribute name="accel">&lt;Primary&gt;r</attribute>
53 </item>
54 <item>
55 <attribute name="label" translatable="yes">_Green</attribute>
56 <attribute name="action">app.color</attribute>
57 <attribute name="target">green</attribute>
58 <attribute name="accel">&lt;Primary&gt;g</attribute>
59 </item>
60 <item>
61 <attribute name="label" translatable="yes">_Blue</attribute>
62 <attribute name="action">app.color</attribute>
63 <attribute name="target">blue</attribute>
64 <attribute name="accel">&lt;Primary&gt;b</attribute>
65 </item>
66 </section>
67 </submenu>
68 <submenu>
69 <attribute name="label" translatable="yes">_Shape</attribute>
70 <section>
71 <item>
72 <attribute name="label" translatable="yes">_Square</attribute>
73 <attribute name="action">win.shape</attribute>
74 <attribute name="target">square</attribute>
75 <attribute name="accel">&lt;Primary&gt;s</attribute>
76 </item>
77 <item>
78 <attribute name="label" translatable="yes">_Rectangle</attribute>
79 <attribute name="action">win.shape</attribute>
80 <attribute name="target">rectangle</attribute>
81 <attribute name="accel">&lt;Primary&gt;r</attribute>
82 </item>
83 <item>
84 <attribute name="label" translatable="yes">_Oval</attribute>
85 <attribute name="action">win.shape</attribute>
86 <attribute name="target">oval</attribute>
87 <attribute name="accel">&lt;Primary&gt;o</attribute>
88 </item>
89 </section>
90 </submenu>
91 <item>
92 <attribute name="label" translatable="yes">_Bold</attribute>
93 <attribute name="action">win.bold</attribute>
94 <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;b</attribute>
95 </item>
96 </section>
97 </submenu>
98 <submenu>
99 <attribute name="label" translatable="yes">_Help</attribute>
100 <item>
101 <attribute name="label" translatable="yes">_About</attribute>
102 <attribute name="action">win.about</attribute>
103 <attribute name="accel">&lt;Primary&gt;a</attribute>
104 </item>
105 </submenu>
106 </menu>
107 </interface>