[devhelp] App: setup missing accelerators
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] App: setup missing accelerators
- Date: Wed, 20 Dec 2017 17:15:45 +0000 (UTC)
commit 801d2c61901d7ee412046060ffdd14981d0be099
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Dec 20 18:05:16 2017 +0100
App: setup missing accelerators
Those were documented in help-overlay.ui, but actually didn't work.
src/dh-app.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 516139c..2553cf4 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -227,6 +227,9 @@ setup_accelerators (GtkApplication *app)
accels[0] = "<Control>t";
gtk_application_set_accels_for_action (app, "win.new-tab", accels);
+ accels[0] = "<Control>n";
+ gtk_application_set_accels_for_action (app, "app.new-window", accels);
+
accels[0] = "<Control>Page_Down";
gtk_application_set_accels_for_action (app, "win.next-tab", accels);
@@ -239,6 +242,9 @@ setup_accelerators (GtkApplication *app)
accels[0] = "<Control>w";
gtk_application_set_accels_for_action (app, "win.close", accels);
+ accels[0] = "<Control>q";
+ gtk_application_set_accels_for_action (app, "app.quit", accels);
+
accels[0] = "F10";
gtk_application_set_accels_for_action (app, "win.gear-menu", accels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]