add clarification stating that the construct_child function is responsible
2006-11-26 Ryan Lortie <desrt@desrt.ca> * docs/reference/gtk/tmpl/gtkbuildable.sgml: add clarification stating that the construct_child function is responsible for returning a reference. * gtkbuilder.c (_gtk_builder_construct): remove g_object_ref() for objects from constructors * gtkuimanager.c (gtk_ui_manager_buildable_construct_child): add g_object_ref() to this construction function (it's the only implementer in GTK) Fixes #496645. svn path=/trunk/; revision=19075
This commit is contained in:
@ -402,7 +402,6 @@ _gtk_builder_construct (GtkBuilder *builder,
|
||||
g_assert (obj != NULL);
|
||||
if (construct_parameters->len)
|
||||
g_warning ("Can't pass in construct-only parameters to %s", info->id);
|
||||
g_object_ref (obj);
|
||||
}
|
||||
else if (info->parent && ((ChildInfo*)info->parent)->internal_child != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user