diff options
author | Benjamin Otte <otte@redhat.com> | 2018-09-17 03:50:56 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-09-17 03:57:37 +0200 |
commit | b92c328425c74a0152acd9c5f7084d7442e273ea (patch) | |
tree | 64da5a7bd0bf203fc9d17289a83caf77a741faf3 | |
parent | 8bdcff3320d3f4cc38fe3d5a8be1f057296b8dac (diff) | |
download | gtk+-b92c328425c74a0152acd9c5f7084d7442e273ea.tar.gz |
sortlistmodel: Actually insert unsorted items at the wrong place
We were adding items in reverse order, oops.
-rw-r--r-- | gtk/gtksortlistmodel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtksortlistmodel.c b/gtk/gtksortlistmodel.c index f8561cde8d..f127791ebc 100644 --- a/gtk/gtksortlistmodel.c +++ b/gtk/gtksortlistmodel.c @@ -174,7 +174,7 @@ gtk_sort_list_model_add_items (GtkSortListModel *self, { gpointer item = g_list_model_get_item (self->model, position + i); sorted_iter = g_sequence_insert_sorted (self->sorted, item, self->sort_func, self->user_data); - unsorted_iter = g_sequence_insert_before (unsorted_iter, sorted_iter); + g_sequence_insert_before (unsorted_iter, sorted_iter); if (unmodified_start != NULL || unmodified_end != NULL) { pos = g_sequence_iter_get_position (sorted_iter); @@ -186,7 +186,7 @@ gtk_sort_list_model_add_items (GtkSortListModel *self, if (unmodified_start) *unmodified_start = start; if (unmodified_end) - *unmodified_end = end; + *unmodified_end = end; } static void |