mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
GtkFileChoooserNative: change prepend to append for insertions in choices list
Although slightly less efficient, keeping the order in the choices list makes it easier for GtkFileChooserNative implementations to add widgets in the order specified by the application. See Merge Request !1043
This commit is contained in:
parent
822deabdfe
commit
234d0443b2
@ -365,7 +365,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_prepend (self->choices, choice);
|
||||
self->choices = g_slist_append (self->choices, choice);
|
||||
|
||||
gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (self->dialog),
|
||||
id, label, options, option_labels);
|
||||
|
Loading…
Reference in New Issue
Block a user