[gnome-documents] preview-menu: add "accel" attributes to the menu items



commit 4d51d1f07486ddea45c4c1ed8ff831c2dffd74fd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 12 17:02:28 2012 -0400

    preview-menu: add "accel" attributes to the menu items
    
    So that accels keep displaying correctly in the menu after GTK+ changes.

 src/resources/preview-menu.ui   |    4 ++++
 src/resources/selection-menu.ui |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/resources/preview-menu.ui b/src/resources/preview-menu.ui
index 7ec4e37..d7389e5 100644
--- a/src/resources/preview-menu.ui
+++ b/src/resources/preview-menu.ui
@@ -14,20 +14,24 @@
       <item>
         <attribute name="action">app.zoom-in</attribute>
         <attribute name="label" translatable="yes">Zoom In</attribute>
+        <attribute name="accel">&lt;Primary&gt;plus</attribute>
       </item>
       <item>
         <attribute name="action">app.zoom-out</attribute>
         <attribute name="label" translatable="yes">Zoom Out</attribute>
+        <attribute name="accel">&lt;Primary&gt;minus</attribute>
       </item>
     </section>
     <section>
       <item>
         <attribute name="action">app.rotate-left</attribute>
         <attribute name="label" translatable="yes">Rotate Left</attribute>
+        <attribute name="accel">&lt;Primary&gt;Left</attribute>
       </item>
       <item>
         <attribute name="action">app.rotate-right</attribute>
         <attribute name="label" translatable="yes">Rotate Right</attribute>
+        <attribute name="accel">&lt;Primary&gt;Right</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/resources/selection-menu.ui b/src/resources/selection-menu.ui
index 76d0761..51cb412 100644
--- a/src/resources/selection-menu.ui
+++ b/src/resources/selection-menu.ui
@@ -4,6 +4,7 @@
       <item>
         <attribute name="action">app.select-all</attribute>
         <attribute name="label" translatable="yes">Select All</attribute>
+        <attribute name="accel">&lt;Primary&gt;a</attribute>
       </item>
       <item>
         <attribute name="action">app.select-none</attribute>



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