Index: trunk/doc/TODO =================================================================== --- trunk/doc/TODO (revision 8797) +++ trunk/doc/TODO (revision 8798) @@ -4,8 +4,6 @@ - cross section on export should draw with double font, but should print file names - pcb_fp_sort_children() got disabled somehow - enable sorting footprints again [report: agaran] - library window: allow long tags and long location text to split - - command dialog: - - when you press the up arrow it doesn't bring back the last command but the first you ever typed - png export: rotated square pad bug, see RTT/padrot.pcb [report: Larry] + stat export: save user-input metadata properly [report: Alain] - layer rewrite: Index: trunk/src_plugins/lib_gtk_common/dlg_command.c =================================================================== --- trunk/src_plugins/lib_gtk_common/dlg_command.c (revision 8797) +++ trunk/src_plugins/lib_gtk_common/dlg_command.c (revision 8798) @@ -159,9 +159,9 @@ s = (gchar *) list->data; if (!strcmp(cmd, s)) { history_list = g_list_remove(history_list, s); - history_list = g_list_prepend(history_list, s); + history_list = g_list_append(history_list, s); gtkc_combo_box_text_remove(ctx->command_combo_box, i); - gtkc_combo_box_text_prepend_text(ctx->command_combo_box, s); + gtkc_combo_box_text_append_text(ctx->command_combo_box, s); return; } } @@ -169,13 +169,13 @@ /* Not a duplicate, so put first in history list and combo box text list. */ s = g_strdup(cmd); - history_list = g_list_prepend(history_list, s); - gtkc_combo_box_text_prepend_text(ctx->command_combo_box, s); + history_list = g_list_append(history_list, s); + gtkc_combo_box_text_append_text(ctx->command_combo_box, s); /* And keep the lists trimmed! */ if (g_list_length(history_list) > conf_hid_gtk.plugins.hid_gtk.history_size) { - s = (gchar *) g_list_nth_data(history_list, conf_hid_gtk.plugins.hid_gtk.history_size); + s = (gchar *) g_list_nth_data(history_list, 0); history_list = g_list_remove(history_list, s); gtkc_combo_box_text_remove(ctx->command_combo_box, conf_hid_gtk.plugins.hid_gtk.history_size); g_free(s);