[gnome-photos] application: Add F1 accelerator to show help
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Add F1 accelerator to show help
- Date: Tue, 10 Jan 2017 10:22:42 +0000 (UTC)
commit 4b1cce28d3a56c41a5c98d73592ba5f54a536a79
Author: Scott Cohen <scottbencohen yahoo com>
Date: Wed Jan 4 06:41:30 2017 -0800
application: Add F1 accelerator to show help
https://bugzilla.gnome.org/show_bug.cgi?id=776670
src/photos-application.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 98ef2ea..2e3169f 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1626,6 +1626,7 @@ photos_application_startup (GApplication *application)
const gchar *edit_accels[2] = {"<Primary>e", NULL};
const gchar *fullscreen_accels[2] = {"F11", NULL};
const gchar *gear_menu_accels[2] = {"F10", NULL};
+ const gchar *help_menu_accels[2] = {"F1", NULL};
const gchar *print_current_accels[2] = {"<Primary>p", NULL};
const gchar *quit_accels[2] = {"<Primary>q", NULL};
const gchar *save_accels[2] = {"<Primary>x", NULL};
@@ -1849,6 +1850,7 @@ photos_application_startup (GApplication *application)
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.edit-current", edit_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.fullscreen", fullscreen_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.gear-menu", gear_menu_accels);
+ gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.help", help_menu_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.print-current", print_current_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.save-current", save_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.search", search_accels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]