]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Make view action shortcuts be ctrl-[1-4] instead of Fn keys
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2011 16:08:29 +0000 (08:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2011 16:08:29 +0000 (08:08 -0800)
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>
gtk-gui.c

index f95ff88cebcccc38ed152799c9150ae8e5a300ab..6df8f419b13acad02fb3f3cb7b36f17c0fdeafc7 100644 (file)
--- 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]);