changeset 454:57459cf0952c

Prefix editor entries in the main menu with numbers. It allows Alt+E+number as shortcut to start an editor.
author zas_
date Sun, 20 Apr 2008 22:29:23 +0000
parents 08978246acef
children 0ef1a94ee4c5
files src/layout_util.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_util.c	Sun Apr 20 22:14:54 2008 +0000
+++ b/src/layout_util.c	Sun Apr 20 22:29:23 2008 +0000
@@ -883,11 +883,11 @@
 
 			if (options->editor_name[i] && strlen(options->editor_name[i]) > 0)
 				{
-				text = g_strdup_printf(_("in %s..."), options->editor_name[i]);
+				text = g_strdup_printf(_("_%d in %s..."), i, options->editor_name[i]);
 				}
 			else
 				{
-				text = g_strdup(_("in (unknown)..."));
+				text = g_strdup_printf(_("_%d in (unknown)..."), i);
 				}
 			g_object_set(action, "label", text,
 					     "sensitive", TRUE, NULL);
@@ -895,8 +895,11 @@
 			}
 		else
 			{
-			g_object_set(action, "label", _("empty"),
-					     "sensitive", FALSE, NULL);
+			gchar *text;
+
+			text = g_strdup_printf(_("_%d empty"), i);
+			g_object_set(action, "label", text, "sensitive", FALSE, NULL);
+			g_free(text);
 			}
 
 		g_free(key);