diff options
author | Moritz Bruder <[email protected]> | 2017-04-12 17:50:18 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2017-04-18 21:43:33 +0300 |
commit | 82ded619a7d07651bfcbec7dfbdb02437ae5f522 (patch) | |
tree | 7fd4b721fdf7905fa1ae670f97d9c22162be78e4 | |
parent | 72dab7d63b191957a58ee4a024a93af7327f2965 (diff) | |
download | mate-panel-82ded619a7d07651bfcbec7dfbdb02437ae5f522.tar.bz2 mate-panel-82ded619a7d07651bfcbec7dfbdb02437ae5f522.tar.xz |
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.)
-rw-r--r-- | mate-panel/panel-run-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |