[gnome-tetravex/arnaudb/wip/gtk4: 41/49] Use <Control>.




commit 3a38143528865dd84c8bd55b4663bde1cf8c280d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Apr 7 08:15:16 2020 +0200

    Use <Control>.

 src/gnome-tetravex.vala | 34 +++++++++++++++++-----------------
 src/help-overlay.ui     |  8 ++++----
 2 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index f7b7e0f..d78a619 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -269,23 +269,23 @@ private class Tetravex : Gtk.Application
         add_action_entries (action_entries, this);
         add_action (settings.create_action ("theme"));
 
-        set_accels_for_action ("app.solve",         {        "<Primary>h"       });
-        set_accels_for_action ("app.scores",        {        "<Primary>i"       });
-        set_accels_for_action ("app.new-game",      {        "<Primary>n"       });
-        set_accels_for_action ("app.pause",         {        "<Primary>p",
+        set_accels_for_action ("app.solve",         {        "<Control>h"       });
+        set_accels_for_action ("app.scores",        {        "<Control>i"       });
+        set_accels_for_action ("app.new-game",      {        "<Control>n"       });
+        set_accels_for_action ("app.pause",         {        "<Control>p",
                                                                       "Pause"   });
-        set_accels_for_action ("app.quit",          {        "<Primary>q"       });
-        set_accels_for_action ("app.move-up-l",     {        "<Primary>Up"      });
-        set_accels_for_action ("app.move-down-l",   {        "<Primary>Down"    });
-        set_accels_for_action ("app.move-left-l",   {        "<Primary>Left"    });
-        set_accels_for_action ("app.move-right-l",  {        "<Primary>Right"   });
-        set_accels_for_action ("app.move-up-r",     { "<Shift><Primary>Up"      });
-        set_accels_for_action ("app.move-down-r",   { "<Shift><Primary>Down"    });
-        set_accels_for_action ("app.move-left-r",   { "<Shift><Primary>Left"    });
-        set_accels_for_action ("app.move-right-r",  { "<Shift><Primary>Right"   });
-        set_accels_for_action ("app.undo",          {        "<Primary>z"       });
-        set_accels_for_action ("app.redo",          { "<Shift><Primary>z"       });
-        set_accels_for_action ("app.reload",        { "<Shift><Primary>r"       });
+        set_accels_for_action ("app.quit",          {        "<Control>q"       });
+        set_accels_for_action ("app.move-up-l",     {        "<Control>Up"      });
+        set_accels_for_action ("app.move-down-l",   {        "<Control>Down"    });
+        set_accels_for_action ("app.move-left-l",   {        "<Control>Left"    });
+        set_accels_for_action ("app.move-right-l",  {        "<Control>Right"   });
+        set_accels_for_action ("app.move-up-r",     { "<Shift><Control>Up"      });
+        set_accels_for_action ("app.move-down-r",   { "<Shift><Control>Down"    });
+        set_accels_for_action ("app.move-left-r",   { "<Shift><Control>Left"    });
+        set_accels_for_action ("app.move-right-r",  { "<Shift><Control>Right"   });
+        set_accels_for_action ("app.undo",          {        "<Control>z"       });
+        set_accels_for_action ("app.redo",          { "<Shift><Control>z"       });
+        set_accels_for_action ("app.reload",        { "<Shift><Control>r"       });
         set_accels_for_action ("app.hamburger",     {                 "F10"     });
         // F1 and friends are managed manually
 
@@ -967,7 +967,7 @@ private class Tetravex : Gtk.Application
             }
         }
         else if (name == "F1")
-            return on_f1_pressed (state);   // TODO fix dance done with the F1 & <Primary>F1 shortcuts that 
show help overlay
+            return on_f1_pressed (state);   // TODO fix dance done with the F1 & <Control>F1 shortcuts that 
show help overlay
 
         return false;
     }
diff --git a/src/help-overlay.ui b/src/help-overlay.ui
index feb621d..6a0d828 100644
--- a/src/help-overlay.ui
+++ b/src/help-overlay.ui
@@ -77,21 +77,21 @@
             <property name="title" translatable="yes" context="shortcut window">History</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="accelerator">&lt;Primary&gt;z</property>
+                <property name="accelerator">&lt;Control&gt;z</property>
                 <!-- Translators: Ctrl-Z shortcut description in the Keyboard Shortcuts dialog, section 
History; verb, undoes last move -->
                 <property name="title" translatable="yes" context="shortcut window">Undo</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="accelerator">&lt;Shift&gt;&lt;Primary&gt;z</property>
+                <property name="accelerator">&lt;Shift&gt;&lt;Control&gt;z</property>
                 <!-- Translators: Shift-Ctrl-Z shortcut description in the Keyboard Shortcuts dialog, 
section History; verb, redoes undone move -->
                 <property name="title" translatable="yes" context="shortcut window">Redo</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="accelerator">&lt;Shift&gt;&lt;Primary&gt;r</property>
+                <property name="accelerator">&lt;Shift&gt;&lt;Control&gt;r</property>
                 <!-- Translators: Shift-Ctrl-R shortcut description in the Keyboard Shortcuts dialog, 
section History; undoes all the moves -->
                 <property name="title" translatable="yes" context="shortcut window">Reload initial 
position</property>
               </object>
@@ -145,7 +145,7 @@
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="accelerator">&lt;Primary&gt;question &lt;Primary&gt;F1</property>
+                <property name="accelerator">&lt;Control&gt;question &lt;Control&gt;F1</property>
                 <!-- Translators: Ctrl-F1 shortcut description in the Keyboard Shortcuts dialog, section 
Generic; displays Keyboard Shortcuts dialog -->
                 <property name="title" translatable="yes" context="shortcut window">Show Keyboard 
Shortcuts</property>
               </object>


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