diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-03-21 15:04:14 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-03-21 15:04:39 +0100 |
commit | 3ffced798efcc5724f42189eca8468f05639938d (patch) | |
tree | a982c102bee78fa1994237493fed52a3caddd7f6 /src/totem-menu.c | |
parent | c6488190a3127b95121ebbadfaaab3384a5051c4 (diff) | |
download | totem-3ffced798efcc5724f42189eca8468f05639938d.tar.gz |
main: Add more shortcuts for the shortcuts help window
Diffstat (limited to 'src/totem-menu.c')
-rw-r--r-- | src/totem-menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/totem-menu.c b/src/totem-menu.c index dbb8e606a..7a1c43fb7 100644 --- a/src/totem-menu.c +++ b/src/totem-menu.c @@ -343,6 +343,12 @@ totem_app_menu_setup (Totem *totem) { GMenuModel *appmenu; char *accels[] = { NULL, NULL }; + const char const *shortcuts_accels[] = { + "<Ctrl>H", + "<Ctrl>question", + "<Ctrl>F1", + NULL + }; appmenu = (GMenuModel *)gtk_builder_get_object (totem->xml, "appmenu"); gtk_application_set_app_menu (GTK_APPLICATION (totem), appmenu); @@ -354,6 +360,7 @@ totem_app_menu_setup (Totem *totem) gtk_application_set_accels_for_action (GTK_APPLICATION (totem), "app.root-menu", (const char * const *) accels); accels[0] = "<Primary>E"; gtk_application_set_accels_for_action (GTK_APPLICATION (totem), "app.eject", (const char * const *) accels); + gtk_application_set_accels_for_action (GTK_APPLICATION (totem), "app.shortcuts", shortcuts_accels); gtk_window_set_application (GTK_WINDOW (totem->win), GTK_APPLICATION (totem)); } |