Commit a8dd0de6 authored by Johannes Schmid's avatar Johannes Schmid Committed by Tristan Van Berkom
Browse files

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

parent 3b30c7ec
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment