[frogr] Added XML description for the contextual menu



commit 236406378cc4e45a2c2d44e2aa395219e1c11203
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Thu Dec 19 07:29:05 2013 +0000

    Added XML description for the contextual menu

 Makefile.am                            |    1 +
 data/gtkbuilder/frogr-context-menu.xml |   51 ++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e69f2d5..0aaa541 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -71,6 +71,7 @@ gtkbuilderdir = $(datadir)/frogr/gtkbuilder
 gtkbuilder_DATA = \
        data/gtkbuilder/frogr-main-view.xml \
        data/gtkbuilder/frogr-app-menu.xml \
+       data/gtkbuilder/frogr-context-menu.xml \
        data/gtkbuilder/frogr-menu-bar.xml
 
 desktopentrydir = $(datadir)/applications
diff --git a/data/gtkbuilder/frogr-context-menu.xml b/data/gtkbuilder/frogr-context-menu.xml
new file mode 100644
index 0000000..1e30951
--- /dev/null
+++ b/data/gtkbuilder/frogr-context-menu.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <menu id="context-menu">
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Edit Details…</attribute>
+        <attribute name="action">win.edit-details</attribute>
+        <attribute name="accel">&lt;Primary&gt;d</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Add _Tags…</attribute>
+        <attribute name="action">win.add-tags</attribute>
+        <attribute name="accel">&lt;Primary&gt;t</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Add to _Group…</attribute>
+        <attribute name="action">win.add-to-group</attribute>
+        <attribute name="accel">&lt;Primary&gt;g</attribute>
+      </item>
+      <submenu>
+        <attribute name="label" translatable="yes">Add to _Photoset</attribute>
+        <section>
+          <item>
+            <attribute name="label" translatable="yes">_Add to Existing Photoset…</attribute>
+            <attribute name="action">win.add-to-set</attribute>
+            <attribute name="accel">&lt;Primary&gt;p</attribute>
+          </item>
+          <item>
+            <attribute name="label" translatable="yes">_Create New Photoset…</attribute>
+            <attribute name="action">win.add-to-new-set</attribute>
+            <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;p</attribute>
+          </item>
+        </section>
+      </submenu>
+    </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Open in External Viewer</attribute>
+        <attribute name="action">win.open-in-external-viewer</attribute>
+        <attribute name="accel">&lt;Primary&gt;v</attribute>
+      </item>
+    </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Remove Elements</attribute>
+        <attribute name="action">win.remove-pictures</attribute>
+        <attribute name="accel">Delete</attribute>
+      </item>
+    </section>
+  </menu>
+</interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]