# HG changeset patch # User zas_ # Date 1208730563 0 # Node ID 57459cf0952cf91e8d5f6bb6b6364c4a4894733e # Parent 08978246acefb33f2d4a34522406ddb447b1d461 Prefix editor entries in the main menu with numbers. It allows Alt+E+number as shortcut to start an editor. diff -r 08978246acef -r 57459cf0952c src/layout_util.c --- 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);