From 0d7df5455d544b527ecc8d09bc24f84a555382f8 Mon Sep 17 00:00:00 2001 From: Moritz Bruder Date: Wed, 12 Apr 2017 17:50:18 +0200 Subject: Run dialog: Fix wrong history order Initially the org.mate.panel.general.history-mate-run key was saved with the most recent command last. In combination with wrong code this led to scrambling the history. This commit changes the history storage in a way that most recent elements are stored first. The code adapts to this change by changing only one function to prepend instead of append in the list store. (Any old histories might therefore be wrong for a short time, but that's probably worth it to fix this bug.) --- mate-panel/panel-run-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mate-panel/panel-run-dialog.c') diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c index e7dd6ff6..e61f3ece 100644 --- a/mate-panel/panel-run-dialog.c +++ b/mate-panel/panel-run-dialog.c @@ -132,7 +132,7 @@ _panel_run_get_recent_programs_list (PanelRunDialog *dialog) items[i] && i < PANEL_RUN_MAX_HISTORY; i++) { GtkTreeIter iter; - gtk_list_store_prepend (list, &iter); + gtk_list_store_append (list, &iter); gtk_list_store_set (list, &iter, 0, items[i], -1); } -- cgit v1.2.1