summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-07 08:08:29 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-07 08:08:29 -0800
commit1cb9fc7fb4cfc919cc7880d0af3a66a2f7f107cf (patch)
tree74579b4de469afcaa64b7f7432e26fd5b5435929 /gtk-gui.c
parent7721036fabb91902acfbf929ff450f59971cc4a3 (diff)
downloadsubsurface-1cb9fc7fb4cfc919cc7880d0af3a66a2f7f107cf.tar.gz
Make view action shortcuts be ctrl-[1-4] instead of Fn keys
Suggested by Henrik Aronsen, and seems much more natural. Especially with lots of keyboards having function keys oddly mapped. Suggested-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index f95ff88ce..6df8f419b 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -578,10 +578,10 @@ static GtkActionEntry menu_items[] = {
{ "SelectEvents", NULL, "SelectEvents", NULL, NULL, G_CALLBACK(selectevents_dialog) },
{ "Quit", GTK_STOCK_QUIT, NULL, "<control>Q", NULL, G_CALLBACK(quit) },
{ "About", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK(about_dialog) },
- { "ViewList", NULL, "List", "F1", NULL, G_CALLBACK(view_list) },
- { "ViewProfile", NULL, "Profile", "F2", NULL, G_CALLBACK(view_profile) },
- { "ViewInfo", NULL, "Info", "F3", NULL, G_CALLBACK(view_info) },
- { "ViewThree", NULL, "Three", "F4", NULL, G_CALLBACK(view_three) },
+ { "ViewList", NULL, "List", "<control>1", NULL, G_CALLBACK(view_list) },
+ { "ViewProfile", NULL, "Profile", "<control>2", NULL, G_CALLBACK(view_profile) },
+ { "ViewInfo", NULL, "Info", "<control>3", NULL, G_CALLBACK(view_info) },
+ { "ViewThree", NULL, "Three", "<control>4", NULL, G_CALLBACK(view_three) },
};
static gint nmenu_items = sizeof (menu_items) / sizeof (menu_items[0]);