[gnome-taquin/arnaudb/wip/gtk4: 25/43] Use <Control>.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-taquin/arnaudb/wip/gtk4: 25/43] Use <Control>.
- Date: Thu, 30 Apr 2020 13:23:49 +0000 (UTC)
commit 1026e39ada60e7a8d110056ad3e9a7bbe42e23fe
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Apr 7 09:30:55 2020 +0200
Use <Control>.
data/ui/help-overlay.ui | 12 ++++++------
src/base-window.vala | 2 +-
src/game-window.vala | 2 +-
src/taquin-main.vala | 28 ++++++++++++++--------------
4 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index 3284347..9fb22fa 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -27,7 +27,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Start new game</property>
- <property name="accelerator"><Primary><Shift>n</property>
+ <property name="accelerator"><Control><Shift>n</property>
</object>
</child>
<child>
@@ -44,19 +44,19 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">New game</property>
- <property name="accelerator"><Primary>n</property>
+ <property name="accelerator"><Control>n</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Restart game</property>
- <property name="accelerator"><Primary><Shift>n</property>
+ <property name="accelerator"><Control><Shift>n</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Undo last move</property>
- <property name="accelerator"><Primary>z</property>
+ <property name="accelerator"><Control>z</property>
</object>
</child>
</object>
@@ -113,7 +113,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Keyboard
shortcuts</property>
- <property name="accelerator"><Primary>question <Primary>F1</property>
+ <property name="accelerator"><Control>question <Control>F1</property>
</object>
</child>
<child>
@@ -131,7 +131,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Quit</property>
- <property name="accelerator"><Primary>q</property>
+ <property name="accelerator"><Control>q</property>
</object>
</child>
</object>
diff --git a/src/base-window.vala b/src/base-window.vala
index 810b093..f56b05d 100644
--- a/src/base-window.vala
+++ b/src/base-window.vala
@@ -328,7 +328,7 @@ private class BaseWindow : AdaptativeWindow, AdaptativeWidget
{
string name = (!) (Gdk.keyval_name (keyval) ?? "");
- if (name == "F1") // TODO fix dance done with the F1 & <Primary>F1 shortcuts that show help overlay
+ if (name == "F1") // TODO fix dance done with the F1 & <Control>F1 shortcuts that show help overlay
{
headerbar.close_popovers ();
main_view.close_popovers ();
diff --git a/src/game-window.vala b/src/game-window.vala
index a21470d..26d2a66 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -205,7 +205,7 @@ private class GameWindow : BaseWindow, AdaptativeWidget
private const GLib.ActionEntry [] ui_action_entries =
{
- { "start-or-restart", start_or_restart_cb }, // "Start new game" button or <Shift><Primary>n
+ { "start-or-restart", start_or_restart_cb }, // "Start new game" button or <Shift><Control>n
{ "new-game", new_game_cb }, // "New game" button or <Shift>n
{ "restart", restart_cb }, // "Restart" menu entry; keep action to allow
disabling menu entry
diff --git a/src/taquin-main.vala b/src/taquin-main.vala
index b0724a3..15a0f9e 100644
--- a/src/taquin-main.vala
+++ b/src/taquin-main.vala
@@ -232,27 +232,27 @@ private class Taquin : Gtk.Application, BaseApplication
window.undo.connect (undo_cb);
window.restart.connect (restart_cb);
- set_accels_for_action ("base.copy", { "<Primary>c" });
- set_accels_for_action ("base.copy-alt", { "<Shift><Primary>c" });
- set_accels_for_action ("ui.new-game", { "<Primary>n" });
- set_accels_for_action ("ui.start-or-restart", { "<Shift><Primary>n" });
- set_accels_for_action ("app.quit", { "<Primary>q",
- "<Shift><Primary>q" });
- set_accels_for_action ("base.paste", { "<Primary>v" });
- set_accels_for_action ("base.paste-alt", { "<Shift><Primary>v" });
- set_accels_for_action ("ui.undo", { "<Primary>z" });
+ set_accels_for_action ("base.copy", { "<Control>c" });
+ set_accels_for_action ("base.copy-alt", { "<Shift><Control>c" });
+ set_accels_for_action ("ui.new-game", { "<Control>n" });
+ set_accels_for_action ("ui.start-or-restart", { "<Shift><Control>n" });
+ set_accels_for_action ("app.quit", { "<Control>q",
+ "<Shift><Control>q" });
+ set_accels_for_action ("base.paste", { "<Control>v" });
+ set_accels_for_action ("base.paste-alt", { "<Shift><Control>v" });
+ set_accels_for_action ("ui.undo", { "<Control>z" });
// set_accels_for_action ("ui.restart" // TODO
- // set_accels_for_action ("ui.redo", { "<Shift><Primary>z" });
+ // set_accels_for_action ("ui.redo", { "<Shift><Control>z" });
set_accels_for_action ("base.escape", { "Escape" });
set_accels_for_action ("base.toggle-hamburger", { "F10",
"Menu" });
// set_accels_for_action ("app.help", { "F1" });
// set_accels_for_action ("base.about", { "<Shift>F1" });
set_accels_for_action ("win.show-help-overlay", { "F1", // TODO test: if showing
Yelp fails, should fallback there
- "<Primary>F1",
- "<Shift><Primary>F1",
- "<Primary>question",
- "<Shift><Primary>question"});
+ "<Control>F1",
+ "<Shift><Control>F1",
+ "<Control>question",
+ "<Shift><Control>question"});
/* New-game screen signals */
settings.changed ["size"].connect (() => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]