mirror of
https://gitlab.gnome.org/GNOME/glade.git
synced 2025-11-27 00:06:20 -05:00
* gladeui/glade-widget.c: Added some clarification to the docs of glade_widget_get_children(),
fixed glade_widget_get_children() to not call g_list_append() in a loop.
This commit is contained in:
parent
473df94ba6
commit
cfcd778e68
@ -1,3 +1,8 @@
|
||||
2010-04-14 Tristan Van Berkom <tvb@gnome.org>
|
||||
|
||||
* gladeui/glade-widget.c: Added some clarification to the docs of glade_widget_get_children(),
|
||||
fixed glade_widget_get_children() to not call g_list_append() in a loop.
|
||||
|
||||
2010-05-14 Johannes Schmid <jhs@jsschmid.de>
|
||||
|
||||
* gladeui/glade-app.c: Allow destruction/recreation of the GladeApp object
|
||||
|
||||
@ -3442,10 +3442,17 @@ glade_widget_set_parent (GladeWidget *widget,
|
||||
}
|
||||
|
||||
/**
|
||||
* glade_widget_get_children
|
||||
* glade_widget_get_children:
|
||||
* @widget: A #GladeWidget
|
||||
*
|
||||
* Fetches any wrapped children of @widget.
|
||||
*
|
||||
* Returns: The children of widget
|
||||
*
|
||||
* <note><para>This differs from a direct call to glade_widget_adaptor_get_children() as
|
||||
* it only returns children which have an associated GladeWidget. This function will
|
||||
* not return any placeholders or internal composite children that have not been
|
||||
* exposed for Glade configuration</para></note>
|
||||
*/
|
||||
GList *
|
||||
glade_widget_get_children (GladeWidget *widget)
|
||||
@ -3463,12 +3470,12 @@ glade_widget_get_children (GladeWidget *widget)
|
||||
{
|
||||
if (glade_widget_get_from_gobject (node->data))
|
||||
{
|
||||
real_children = g_list_append (real_children, node->data);
|
||||
real_children = g_list_prepend (real_children, node->data);
|
||||
}
|
||||
}
|
||||
g_list_free (adapter_children);
|
||||
|
||||
return real_children;
|
||||
return g_list_reverse (real_children);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user