diff options
author | David King <amigadave@amigadave.com> | 2013-11-12 09:17:39 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2013-11-12 09:25:14 +0000 |
commit | 24d86997c3500f50e0dee947983bb9e42e02573c (patch) | |
tree | 86cc00fafe32af8599a67bc66891dcb42147631f /data | |
parent | db7b638aa5c462441962078477b647458b476508 (diff) |
Move application menu into GtkBuilder resource
Diffstat (limited to 'data')
-rw-r--r-- | data/cheese-appmenu.ui | 32 | ||||
-rw-r--r-- | data/cheese.gresource.xml | 13 |
2 files changed, 39 insertions, 6 deletions
diff --git a/data/cheese-appmenu.ui b/data/cheese-appmenu.ui new file mode 100644 index 00000000..2948e1b0 --- /dev/null +++ b/data/cheese-appmenu.ui @@ -0,0 +1,32 @@ +<interface domain="cheese"> + <menu id="appmenu"> + <section> + <item> + <attribute name="accel">F11</attribute> + <attribute name="label" translatable="yes">_Fullscreen</attribute> + <attribute name="action">app.fullscreen</attribute> + </item> + <item> + <attribute name="label" translatable="yes">P_references</attribute> + <attribute name="action">app.preferences</attribute> + </item> + </section> + <section> + <item> + <attribute name="accel">F1</attribute> + <attribute name="label" translatable="yes">_Help</attribute> + <attribute name="action">app.help</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_About</attribute> + <attribute name="action">app.about</attribute> + </item> + <item> + <attribute name="accel"><Primary>q</attribute> + <attribute name="label" translatable="yes">_Quit</attribute> + <attribute name="action">app.quit</attribute> + </item> + </section> + </menu> +</interface> + diff --git a/data/cheese.gresource.xml b/data/cheese.gresource.xml index 306e856c..514c2126 100644 --- a/data/cheese.gresource.xml +++ b/data/cheese.gresource.xml @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <gresources> - <gresource prefix='/org/gnome/Cheese'> - <file>cheese.css</file> - <file>cheese-viewport.json</file> - <file preprocess="xml-stripblanks">cheese-main-window.ui</file> - <file preprocess="xml-stripblanks">cheese-prefs.ui</file> - </gresource> + <gresource prefix='/org/gnome/Cheese'> + <file>cheese.css</file> + <file>cheese-viewport.json</file> + <file preprocess="xml-stripblanks">cheese-appmenu.ui</file> + <file preprocess="xml-stripblanks">cheese-main-window.ui</file> + <file preprocess="xml-stripblanks">cheese-prefs.ui</file> + </gresource> </gresources> |