[gnome-system-monitor] Accel cleanup and F1 accel fix (#136)



commit fe2ff54885b167fad02e82be669d6bb2098969b1
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Jan 21 19:45:43 2020 +0200

    Accel cleanup and F1 accel fix (#136)

 data/menus.ui       | 11 -----------
 src/application.cpp |  1 +
 2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/data/menus.ui b/data/menus.ui
index c8cfdef3..94a331bd 100644
--- a/data/menus.ui
+++ b/data/menus.ui
@@ -15,7 +15,6 @@
       <item>
         <attribute name="label" translatable="yes">Help</attribute>
         <attribute name="action">app.help</attribute>
-        <attribute name="accel">F1</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">About System Monitor</attribute>
@@ -28,7 +27,6 @@
       <item>
         <attribute name="label" translatable="yes">_Refresh</attribute>
         <attribute name="action">win.refresh</attribute>
-        <attribute name="accel">&lt;Primary&gt;r</attribute>
       </item>
     </section>
     <section>
@@ -52,7 +50,6 @@
       <item>
         <attribute name="label" translatable="yes">Show _Dependencies</attribute>
         <attribute name="action">win.show-dependencies</attribute>
-        <attribute name="accel">&lt;Primary&gt;d</attribute>
       </item>
     </section>
     <section>
@@ -69,7 +66,6 @@
       <item>
         <attribute name="label" translatable="yes">Help</attribute>
         <attribute name="action">app.help</attribute>
-        <attribute name="accel">F1</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">About System Monitor</attribute>
@@ -82,19 +78,16 @@
       <item>
         <attribute name="label" translatable="yes">_Properties</attribute>
         <attribute name="action">win.process-properties</attribute>
-        <attribute name="accel">&lt;Alt&gt;Return</attribute>
       </item>
     </section>
     <section>
       <item>
         <attribute name="label" translatable="yes">_Memory Maps</attribute>
         <attribute name="action">win.memory-maps</attribute>
-        <attribute name="accel">&lt;Primary&gt;m</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes" comments="Translators: this means 'Files that are open' 
(open is not a verb here)">Open _Files</attribute>
         <attribute name="action">win.open-files</attribute>
-        <attribute name="accel">&lt;Primary&gt;o</attribute>
       </item>
     </section>
     <section>
@@ -140,25 +133,21 @@
       <item>
         <attribute name="label" translatable="yes">_Stop</attribute>
         <attribute name="action">win.send-signal-stop</attribute>
-        <attribute name="accel">&lt;Primary&gt;s</attribute>
         <attribute name="target" type="i">19</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Continue</attribute>
         <attribute name="action">win.send-signal-cont</attribute>
-        <attribute name="accel">&lt;Primary&gt;c</attribute>
         <attribute name="target" type="i">18</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_End</attribute>
         <attribute name="action">win.send-signal-end</attribute>
-        <attribute name="accel">&lt;Primary&gt;e</attribute>
         <attribute name="target" type="i">15</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Kill</attribute>
         <attribute name="action">win.send-signal-kill</attribute>
-        <attribute name="accel">&lt;Primary&gt;k</attribute>
         <attribute name="target" type="i">9</attribute>
       </item>
     </section>
diff --git a/src/application.cpp b/src/application.cpp
index 4fd3e673..7dff723f 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -400,6 +400,7 @@ void GsmApplication::on_startup()
     add_accelerator("<Primary>o", "win.open-files", NULL);
     add_accelerator("<Alt>Return", "win.process-properties", NULL);
     add_accelerator("<Primary>f", "win.search", g_variant_new_boolean (TRUE));
+    add_accelerator("F1", "app.help", NULL);
 
     Gtk::Window::set_default_icon_name ("org.gnome.SystemMonitor");
 


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