prepend instead of appending

It is cheaper.
This commit is contained in:
Matthias Clasen
2016-07-06 20:16:32 -04:00
parent b130d1d964
commit 9f05f44c7c

View File

@@ -356,7 +356,7 @@ gtk_file_chooser_native_add_choice (GtkFileChooser *chooser,
choice->options = g_strdupv ((char **)options);
choice->option_labels = g_strdupv ((char **)option_labels);
self->choices = g_slist_append (self->choices, choice);
self->choices = g_slist_prepend (self->choices, choice);
gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (self->dialog),
id, label, options, option_labels);