[devhelp] Don't duplicate accel info in *.ui files to create the GMenus



commit cb0ce4d9abb5b74d9d55a5ce4cca5a2d88d74956
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Dec 20 17:56:18 2017 +0100

    Don't duplicate accel info in *.ui files to create the GMenus
    
    Those attributes were not used. And it's better to not duplicate the
    information. The accelerators are set in dh-app.c, and they are
    documented in help-overlay.ui.

 src/dh-window.ui |   13 -------------
 src/menus.ui     |    2 --
 2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/dh-window.ui b/src/dh-window.ui
index 7163714..0815284 100644
--- a/src/dh-window.ui
+++ b/src/dh-window.ui
@@ -6,7 +6,6 @@
       <item>
         <attribute name="label" translatable="yes">Side _Panel</attribute>
         <attribute name="action">win.show-sidebar</attribute>
-        <attribute name="accel">F9</attribute>
         <attribute name="use-underline">True</attribute>
       </item>
     </section>
@@ -14,29 +13,24 @@
       <item>
         <attribute name="label" translatable="yes">_Print</attribute>
         <attribute name="action">win.print</attribute>
-        <attribute name="accel">&lt;Primary&gt;p</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Find</attribute>
         <attribute name="action">win.find</attribute>
-        <attribute name="accel">&lt;Primary&gt;f</attribute>
       </item>
     </section>
     <section>
       <item>
         <attribute name="label" translatable="yes">_Larger Text</attribute>
         <attribute name="action">win.zoom-in</attribute>
-        <attribute name="accel">&lt;Primary&gt;plus</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">S_maller Text</attribute>
         <attribute name="action">win.zoom-out</attribute>
-        <attribute name="accel">&lt;Primary&gt;minus</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Normal Size</attribute>
         <attribute name="action">win.zoom-default</attribute>
-        <attribute name="accel">&lt;Primary&gt;0</attribute>
       </item>
     </section>
   </menu>
@@ -45,7 +39,6 @@
       <item>
         <attribute name="label" translatable="yes">New _Window</attribute>
         <attribute name="action">app.new-window</attribute>
-        <attribute name="accel">&lt;Primary&gt;n</attribute>
       </item>
     </section>
     <section>
@@ -59,29 +52,24 @@
       <item>
         <attribute name="label" translatable="yes">_Print</attribute>
         <attribute name="action">win.print</attribute>
-        <attribute name="accel">&lt;Primary&gt;p</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Find</attribute>
         <attribute name="action">win.find</attribute>
-        <attribute name="accel">&lt;Primary&gt;f</attribute>
       </item>
     </section>
     <section>
       <item>
         <attribute name="label" translatable="yes">_Larger Text</attribute>
         <attribute name="action">win.zoom-in</attribute>
-        <attribute name="accel">&lt;Primary&gt;plus</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">S_maller Text</attribute>
         <attribute name="action">win.zoom-out</attribute>
-        <attribute name="accel">&lt;Primary&gt;minus</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Normal Size</attribute>
         <attribute name="action">win.zoom-default</attribute>
-        <attribute name="accel">&lt;Primary&gt;0</attribute>
       </item>
     </section>
     <section>
@@ -102,7 +90,6 @@
       <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>
diff --git a/src/menus.ui b/src/menus.ui
index 13a5f4d..29671f7 100644
--- a/src/menus.ui
+++ b/src/menus.ui
@@ -29,7 +29,6 @@
       <item>
         <attribute name="label" translatable="yes">New _Window</attribute>
         <attribute name="action">app.new-window</attribute>
-        <attribute name="accel">&lt;Primary&gt;n</attribute>
       </item>
     </section>
     <section>
@@ -50,7 +49,6 @@
       <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>


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