[glade] Sorting signals: g_list_sort() after the loop.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Sorting signals: g_list_sort() after the loop.
- Date: Mon, 1 Apr 2013 09:18:49 +0000 (UTC)
commit 837bf95faf4298d8028ec4727d91b461a2d18981
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Mar 31 21:58:57 2013 +0900
Sorting signals: g_list_sort() after the loop.
gladeui/glade-widget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 8c94a87..6dcddd8 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -3980,12 +3980,12 @@ glade_widget_write_signals (GladeWidget * widget,
{
signal = g_ptr_array_index (signals, i);
- sorted_signals =
- g_list_insert_sorted (sorted_signals,
- signal, (GCompareFunc)signal_compare);
+ sorted_signals = g_list_prepend (sorted_signals, signal);
}
}
+ sorted_signals = g_list_sort (sorted_signals, (GCompareFunc)signal_compare);
+
for (l = sorted_signals; l; l = l->next)
{
signal = l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]