[tali] Fix Ctrl+Q shortcut for Quit
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tali] Fix Ctrl+Q shortcut for Quit
- Date: Sat, 4 Jan 2020 14:44:35 +0000 (UTC)
commit 92275969801cbbb4f34ed62d3f289ac6d7355d90
Author: Mart Raudsepp <leio gentoo org>
Date: Sat Jan 4 16:44:06 2020 +0200
Fix Ctrl+Q shortcut for Quit
Fixes #12
src/gyahtzee.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gyahtzee.c b/src/gyahtzee.c
index 8ba5853..614ca3c 100644
--- a/src/gyahtzee.c
+++ b/src/gyahtzee.c
@@ -746,11 +746,13 @@ GyahtzeeCreateMainWindow (GApplication *app, gpointer user_data)
const gchar *vaccels_new[] = {"<Primary>n", NULL};
const gchar *vaccels_roll[] = {"<Primary>r", NULL};
const gchar *vaccels_undo[] = {"<Primary>z", NULL};
+ const gchar *vaccels_quit[] = {"<Primary>q", NULL};
gtk_application_set_accels_for_action (application, "app.help", vaccels_help);
gtk_application_set_accels_for_action (application, "app.new-game", vaccels_new);
gtk_application_set_accels_for_action (application, "app.roll", vaccels_roll);
gtk_application_set_accels_for_action (application, "app.undo", vaccels_undo);
+ gtk_application_set_accels_for_action (application, "app.quit", vaccels_quit);
scores_action = g_action_map_lookup_action (G_ACTION_MAP (application), "scores");
undo_action = g_action_map_lookup_action (G_ACTION_MAP (application), "undo");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]