[five-or-more/arnaudb/wip/gtk4: 29/37] Use Control.




commit 43faac661ae23673ff44e00283cdb7b924a956c2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat May 9 22:36:47 2020 +0200

    Use Control.

 data/ui/help-overlay.ui | 6 +++---
 src/main.vala           | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index f86bce4..a2cac10 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -29,7 +29,7 @@
               <object class="GtkShortcutsShortcut">
                 <!-- Translators: in the Keyboard Shortcuts window, section "New game"; action of the Ctrl-N 
shortcut -->
                 <property name="title" translatable="yes" context="shortcut window">Start a new 
game</property>
-                <property name="accelerator">&lt;Primary&gt;n</property>
+                <property name="accelerator">&lt;Control&gt;n</property>
               </object>
             </child>
           </object>
@@ -69,7 +69,7 @@
               <object class="GtkShortcutsShortcut">
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the 
Ctrl-Shift-? shortcut; opens the Keyboard Shortcuts dialog -->
                 <property name="title" translatable="yes" context="shortcut window">Keyboard 
shortcuts</property>
-                <property name="accelerator">&lt;Primary&gt;question</property> <!-- TODO &lt;Primary&gt;F1 
-->
+                <property name="accelerator">&lt;Control&gt;question</property> <!-- TODO &lt;Control&gt;F1 
-->
               </object>
             </child>
             <child>
@@ -91,7 +91,7 @@
               <object class="GtkShortcutsShortcut">
                 <!-- Translators: in the Keyboard Shortcuts window, section "Generic"; action of the Ctrl-Q 
shortcut; quits the application -->
                 <property name="title" translatable="yes" context="shortcut window">Quit</property>
-                <property name="accelerator">&lt;Primary&gt;q</property>
+                <property name="accelerator">&lt;Control&gt;q</property>
               </object>
             </child>
           </object>
diff --git a/src/main.vala b/src/main.vala
index 4d910b6..3532771 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -66,8 +66,8 @@ private class FiveOrMoreApp: Gtk.Application
         add_window (window);
 
         add_action_entries (action_entries, this);
-        set_accels_for_action ("win.new-game",  { "<Primary>n"  });
-        set_accels_for_action ("app.quit",      { "<Primary>q"  });
+        set_accels_for_action ("win.new-game",  { "<Control>n"  });
+        set_accels_for_action ("app.quit",      { "<Control>q"  });
         set_accels_for_action ("app.help",      {          "F1" });
     }
 


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