Debian Codegraph @

demos/gtk-demo/menus.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3 <menu id="menubar">
4 <submenu>
5 <attribute name="label" translatable="yes">_File</attribute>
6 <section>
7 <item>
8 <attribute name="label" translatable="yes">_New</attribute>
9 <attribute name="action">app.new</attribute>
10 <attribute name="accel">&lt;Control&gt;n</attribute>
11 </item>
12 <item>
13 <attribute name="label" translatable="yes">_Open</attribute>
14 <attribute name="action">app.open</attribute>
15 </item>
16 <item>
17 <attribute name="label" translatable="yes">_Save</attribute>
18 <attribute name="action">app.save</attribute>
19 <attribute name="accel">&lt;Control&gt;s</attribute>
20 </item>
21 <item>
22 <attribute name="label" translatable="yes">Save _As...</attribute>
23 <attribute name="action">app.save-as</attribute>
24 <attribute name="accel">&lt;Control&gt;&lt;Shift&gt;s</attribute>
25 </item>
26 </section>
27 <section>
28 <item>
29 <attribute name="label" translatable="yes">_Quit</attribute>
30 <attribute name="action">app.quit</attribute>
31 <attribute name="accel">&lt;Control&gt;q</attribute>
32 </item>
33 </section>
34 </submenu>
35 <submenu>
36 <attribute name="label" translatable="yes">_Edit</attribute>
37 <section>
38 <item>
39 <attribute name="label" translatable="yes">Undo</attribute>
40 <attribute name="action">text.undo</attribute>
41 </item>
42 <item>
43 <attribute name="label" translatable="yes">Redo</attribute>
44 <attribute name="action">text.redo</attribute>
45 </item>
46 </section>
47 <section>
48 <item>
49 <attribute name="label" translatable="yes">Cut</attribute>
50 <attribute name="action">clipboard.cut</attribute>
51 </item>
52 <item>
53 <attribute name="label" translatable="yes">Copy</attribute>
54 <attribute name="action">clipboard.copy</attribute>
55 </item>
56 <item>
57 <attribute name="label" translatable="yes">Paste</attribute>
58 <attribute name="action">clipboard.paste</attribute>
59 </item>
60 <item>
61 <attribute name="label" translatable="yes">Select All</attribute>
62 <attribute name="action">selection.select-all</attribute>
63 </item>
64 </section>
65 </submenu>
66 <submenu>
67 <attribute name="label" translatable="yes">_Preferences</attribute>
68 <section>
69 <item>
70 <attribute name="label" translatable="yes">_Prefer Dark Theme</attribute>
71 <attribute name="action">app.dark</attribute>
72 </item>
73 <submenu>
74 <attribute name="label" translatable="yes">_Color</attribute>
75 <section>
76 <item>
77 <attribute name="label" translatable="yes">_Red</attribute>
78 <attribute name="action">app.color</attribute>
79 <attribute name="target">red</attribute>
80 <attribute name="accel">&lt;Control&gt;r</attribute>
81 </item>
82 <item>
83 <attribute name="label" translatable="yes">_Green</attribute>
84 <attribute name="action">app.color</attribute>
85 <attribute name="target">green</attribute>
86 <attribute name="accel">&lt;Control&gt;g</attribute>
87 </item>
88 <item>
89 <attribute name="label" translatable="yes">_Blue</attribute>
90 <attribute name="action">app.color</attribute>
91 <attribute name="target">blue</attribute>
92 <attribute name="accel">&lt;Control&gt;b</attribute>
93 </item>
94 </section>
95 </submenu>
96 <submenu>
97 <attribute name="label" translatable="yes">_Shape</attribute>
98 <section>
99 <item>
100 <attribute name="label" translatable="yes">_Square</attribute>
101 <attribute name="action">win.shape</attribute>
102 <attribute name="target">square</attribute>
103 <attribute name="accel">&lt;Control&gt;s</attribute>
104 </item>
105 <item>
106 <attribute name="label" translatable="yes">_Rectangle</attribute>
107 <attribute name="action">win.shape</attribute>
108 <attribute name="target">rectangle</attribute>
109 <attribute name="accel">&lt;Control&gt;r</attribute>
110 </item>
111 <item>
112 <attribute name="label" translatable="yes">_Oval</attribute>
113 <attribute name="action">win.shape</attribute>
114 <attribute name="target">oval</attribute>
115 <attribute name="accel">&lt;Control&gt;o</attribute>
116 </item>
117 </section>
118 </submenu>
119 <item>
120 <attribute name="label" translatable="yes">_Bold</attribute>
121 <attribute name="action">win.bold</attribute>
122 <attribute name="accel">&lt;Control&gt;&lt;Shift&gt;b</attribute>
123 </item>
124 </section>
125 </submenu>
126 <submenu>
127 <attribute name="label" translatable="yes">_Help</attribute>
128 <item>
129 <attribute name="label" translatable="yes">_About</attribute>
130 <attribute name="action">win.about</attribute>
131 <attribute name="accel">&lt;Control&gt;a</attribute>
132 </item>
133 </submenu>
134 </menu>
135 </interface>