Add number mnemonics to image view editors submenu.
authorLaurent Monin <geeqie@norz.org>
Sun, 20 Apr 2008 22:45:00 +0000 (22:45 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 20 Apr 2008 22:45:00 +0000 (22:45 +0000)
src/menu.c

index c1151e2..6113292 100644 (file)
@@ -71,13 +71,13 @@ static void add_edit_items(GtkWidget *menu, GCallback func, GtkAccelGroup *accel
                        {
                        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);
                        }
                }