[glade3] glade-widget: Don't duplicate the list of children



commit a8dd0de6864f13396d86b903b2a1243e8103281e
Author: Johannes Schmid <jhs gnome org>
Date:   Thu May 6 20:56:45 2010 +0200

    glade-widget: Don't duplicate the list of children

 gladeui/glade-widget.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 9b767fb..124ba5f 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -3451,19 +3451,8 @@ GList *
 glade_widget_get_children (GladeWidget* widget)
 {
 	GladeWidgetAdaptor* adaptor = glade_widget_get_adaptor (widget);
-	GList* adaptor_children = NULL;
-	GList* children = NULL;
-	GList* node;
 
-	adaptor_children = glade_widget_adaptor_get_children (adaptor, widget->object);
-	for (node = adaptor_children; node != NULL; node = g_list_next (node))
-	{
-		if (GLADE_IS_WIDGET (glade_widget_get_from_gobject (node->data)))
-			children = g_list_append (children, node->data);
-	}
-	g_list_free (adaptor_children);
-	
-	return children;
+	return glade_widget_adaptor_get_children (adaptor, widget->object);
 }
 	
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]