diff options
author | Ryan Lortie <desrt@desrt.ca> | 2007-11-27 03:25:09 +0000 |
---|---|---|
committer | Ryan Lortie <ryanl@src.gnome.org> | 2007-11-27 03:25:09 +0000 |
commit | 08e15bbbaefa64f4c720831a0c20bd602a37c5fe (patch) | |
tree | 0efee7e6a032ae05307b35c21ca54f0003629c5f /gtk/gtkbuilder.c | |
parent | 490af125c23e521f217cb2280f573be1be1cc4dd (diff) | |
download | gtk+-08e15bbbaefa64f4c720831a0c20bd602a37c5fe.tar.gz |
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
Diffstat (limited to 'gtk/gtkbuilder.c')
-rw-r--r-- | gtk/gtkbuilder.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index 5f6e1dff88..263698b22a 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -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) { |