[gtk+/portal] prepend instead of appending
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] prepend instead of appending
- Date: Thu, 7 Jul 2016 03:28:46 +0000 (UTC)
commit 9f05f44c7cbf7bc98698f1012dd13a9270ebc442
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 20:16:32 2016 -0400
prepend instead of appending
It is cheaper.
gtk/gtkfilechoosernative.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c
index 266d025..a3e5636 100644
--- a/gtk/gtkfilechoosernative.c
+++ b/gtk/gtkfilechoosernative.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]