summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/appmenu.ui
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-02-27 23:43:06 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-02-27 23:43:06 -0500
commit492fec62949019c8344c872e51b8bd0516948bba (patch)
treedd9f1cfd8ca877b79142bd3fe2be5b7bceaaa777 /demos/gtk-demo/appmenu.ui
parent9d5ad67c91c76b71b31342f53c04f56c93773b35 (diff)
downloadgtk+-492fec62949019c8344c872e51b8bd0516948bba.tar.gz
gtk-demo: Put hte app menu in a separate file
No need to cram it in the same file as the main window.
Diffstat (limited to 'demos/gtk-demo/appmenu.ui')
-rw-r--r--demos/gtk-demo/appmenu.ui19
1 files changed, 19 insertions, 0 deletions
diff --git a/demos/gtk-demo/appmenu.ui b/demos/gtk-demo/appmenu.ui
new file mode 100644
index 0000000000..d52693bac7
--- /dev/null
+++ b/demos/gtk-demo/appmenu.ui
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.10 -->
+ <menu id="appmenu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">About</attribute>
+ <attribute name="action">app.about</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Quit</attribute>
+ <attribute name="action">app.quit</attribute>
+ <attribute name="accel">&lt;Primary&gt;q</attribute>
+ </item>
+ </section>
+ </menu>
+</interface>