comparison 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
comparison
equal deleted inserted replaced
454:57459cf0952c 455:0ef1a94ee4c5
69 { 69 {
70 if (options->editor_command[i] && strlen(options->editor_command[i]) > 0) 70 if (options->editor_command[i] && strlen(options->editor_command[i]) > 0)
71 { 71 {
72 gchar *text; 72 gchar *text;
73 if (options->editor_name[i] && strlen(options->editor_name[i]) > 0) 73 if (options->editor_name[i] && strlen(options->editor_name[i]) > 0)
74 text = g_strdup_printf(_("in %s..."), options->editor_name[i]); 74 text = g_strdup_printf(_("_%d in %s..."), i, options->editor_name[i]);
75 else 75 else
76 text = g_strdup(_("in (unknown)...")); 76 text = g_strdup_printf(_("_%d in (unknown)..."), i);
77 if (accel_grp) 77 if (accel_grp)
78 add_menu_item(menu, text, accel_grp, i + 49, GDK_CONTROL_MASK, func, GINT_TO_POINTER(i)); 78 add_menu_item(menu, text, accel_grp, i + 49, GDK_CONTROL_MASK, func, GINT_TO_POINTER(i));
79 else 79 else
80 menu_item_add_simple(menu, text, func, GINT_TO_POINTER(i)); 80 menu_item_add(menu, text, func, GINT_TO_POINTER(i));
81 g_free(text); 81 g_free(text);
82 } 82 }
83 } 83 }
84 } 84 }
85 85