[glade3] * plugins/gtk+/glade-gtk.c: Removed alpha_sort_box_children(), project needs to be sorted with b
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * plugins/gtk+/glade-gtk.c: Removed alpha_sort_box_children(), project needs to be sorted with b
- Date: Mon, 20 Dec 2010 07:50:24 +0000 (UTC)
commit dde69f358c9366a5d30c0aaaa983b3c4ca08e70f
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Dec 19 20:05:23 2010 +0900
* plugins/gtk+/glade-gtk.c: Removed alpha_sort_box_children(), project needs to be
sorted with box children by position, loading process depends on this.
ChangeLog | 3 +++
plugins/gtk+/glade-gtk.c | 22 +---------------------
2 files changed, 4 insertions(+), 21 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 98348e1..a16224e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* plugins/gtk+/glade-gtk.c: Fix alpha_sort_box_children() to give a consistent
order to placeholders (bug 637534 fix by Marco Diego Aurélio Mesquita).
+ * plugins/gtk+/glade-gtk.c: Removed alpha_sort_box_children(), project needs to be
+ sorted with box children by position, loading process depends on this.
+
2010-12-18 Tristan Van Berkom <tristanvb openismus com>
* src/Makefile.am, gladeui/Makefile.am, plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am:
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 2c7f6ff..54636e0 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -1700,33 +1700,13 @@ sort_box_children (GtkWidget *widget_a, GtkWidget *widget_b)
return position_a - position_b;
}
-static gint
-alpha_sort_box_children (GtkWidget *a, GtkWidget *b)
-{
- GladeWidget *ga, *gb;
-
- ga = glade_widget_get_from_gobject (a);
- gb = glade_widget_get_from_gobject (b);
-
- if (!GLADE_IS_WIDGET (ga) && !GLADE_IS_WIDGET (gb))
- return 0;
-
- if (!GLADE_IS_WIDGET (ga))
- return 1;
-
- if (!GLADE_IS_WIDGET (gb))
- return -1;
-
- return strcmp (ga->name, gb->name);
-}
-
GList *
glade_gtk_box_get_children (GladeWidgetAdaptor *adaptor,
GtkContainer *container)
{
GList *children = glade_util_container_get_all_children (container);
- return g_list_sort (children, (GCompareFunc)alpha_sort_box_children);
+ return g_list_sort (children, (GCompareFunc)sort_box_children);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]