diff src/menu.c @ 455:0ef1a94ee4c5

Add number mnemonics to image view editors submenu.
author zas_
date Sun, 20 Apr 2008 22:45:00 +0000
parents ddabc4873a3f
children 48c8e49b571c
line wrap: on
line diff
--- a/src/menu.c	Sun Apr 20 22:29:23 2008 +0000
+++ b/src/menu.c	Sun Apr 20 22:45:00 2008 +0000
@@ -71,13 +71,13 @@
 			{
 			gchar *text;
 			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);
 			if (accel_grp)
 				add_menu_item(menu, text, accel_grp, i + 49, GDK_CONTROL_MASK, func, GINT_TO_POINTER(i));
 			else
-				menu_item_add_simple(menu, text, func, GINT_TO_POINTER(i));
+				menu_item_add(menu, text, func, GINT_TO_POINTER(i));
 			g_free(text);
 			}
 		}