[gnome-chess/arnaudb/wip/gtk4: 20/27] Use Control.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/arnaudb/wip/gtk4: 20/27] Use Control.
- Date: Sat, 26 Sep 2020 10:09:58 +0000 (UTC)
commit b79ccfc9cff12074df65ffb5321af702e47aa142
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Apr 8 20:05:19 2020 +0200
Use Control.
data/help-overlay.ui | 16 ++++++++--------
src/gnome-chess.vala | 14 +++++++-------
2 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
index b380ab6..210c59b 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -11,43 +11,43 @@
<property name="title" translatable="yes" context="shortcut window">General</property>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>N</property>
+ <property name="accelerator"><Control>n</property>
<property name="title" translatable="yes" context="shortcut window">Start a new
game</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>O</property>
+ <property name="accelerator"><Control>o</property>
<property name="title" translatable="yes" context="shortcut window">Open a saved
game</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>P Pause</property>
+ <property name="accelerator"><Control>p Pause</property>
<property name="title" translatable="yes" context="shortcut window">Pause the game</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>S</property>
+ <property name="accelerator"><Control>s</property>
<property name="title" translatable="yes" context="shortcut window">Save the game</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Shift><Ctrl>S</property>
+ <property name="accelerator"><Shift><Control>s</property>
<property name="title" translatable="yes" context="shortcut window">Save the game with a
different name</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>Z</property>
+ <property name="accelerator"><Control>z</property>
<property name="title" translatable="yes" context="shortcut window">Undo move</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Ctrl>Q</property>
+ <property name="accelerator"><Control>q</property>
<property name="title" translatable="yes" context="shortcut window">Quit</property>
</object>
</child>
@@ -99,7 +99,7 @@
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator"><Primary>question</property>
+ <property name="accelerator"><Control>question</property>
<property name="title" translatable="yes" context="shortcut window">Show Keyboard
Shortcuts</property>
</object>
</child>
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 44f7976..0ea572e 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -150,7 +150,7 @@ Copyright © 2015–2016 Sahil Sareen""";
add_action_entries (app_entries, this);
set_accels_for_action ("app.help", {"F1"});
- set_accels_for_action ("app.quit", {"<Primary>q", "<Primary>w"});
+ set_accels_for_action ("app.quit", {"<Control>q", "<Control>w"});
Builder builder = new Builder.from_resource ("/org/gnome/Chess/ui/gnome-chess.ui");
window = (ApplicationWindow) builder.get_object ("gnome_chess_app");
@@ -184,12 +184,12 @@ Copyright © 2015–2016 Sahil Sareen""";
update_pause_resume_button ();
window.add_action_entries (window_entries, this);
- set_accels_for_action ("win." + NEW_GAME_ACTION_NAME, { "<Primary>n" });
- set_accels_for_action ("win." + OPEN_GAME_ACTION_NAME, { "<Primary>o" });
- set_accels_for_action ("win." + SAVE_GAME_ACTION_NAME, { "<Primary>s" });
- set_accels_for_action ("win." + SAVE_GAME_AS_ACTION_NAME, { "<Shift><Primary>s" });
- set_accels_for_action ("win." + UNDO_MOVE_ACTION_NAME, { "<Primary>z" });
- set_accels_for_action ("win." + PAUSE_RESUME_ACTION_NAME, { "<Primary>p",
+ set_accels_for_action ("win." + NEW_GAME_ACTION_NAME, { "<Control>n" });
+ set_accels_for_action ("win." + OPEN_GAME_ACTION_NAME, { "<Control>o" });
+ set_accels_for_action ("win." + SAVE_GAME_ACTION_NAME, { "<Control>s" });
+ set_accels_for_action ("win." + SAVE_GAME_AS_ACTION_NAME, { "<Shift><Control>s" });
+ set_accels_for_action ("win." + UNDO_MOVE_ACTION_NAME, { "<Control>z" });
+ set_accels_for_action ("win." + PAUSE_RESUME_ACTION_NAME, { "<Control>p",
"Pause" });
add_window (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]