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

glade-widget: Don't list children without associated GladeWidget but do it in-place

parent a4cb8020
......@@ -3451,8 +3451,20 @@ GList *
glade_widget_get_children (GladeWidget* widget)
GladeWidgetAdaptor* adaptor = glade_widget_get_adaptor (widget);
GList* children = NULL;
GList* node;
return glade_widget_adaptor_get_children (adaptor, widget->object);
children = glade_widget_adaptor_get_children (adaptor, widget->object);
for (node = children; node != NULL; node = g_list_next (node))
if (!glade_widget_get_from_gobject (node->data))
children = g_list_delete_link (children, node);
node = children;
return children;
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