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/gtkuimanager.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/gtkuimanager.c')
-rw-r--r-- | gtk/gtkuimanager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c index 9528bc41f5..2273579d1a 100644 --- a/gtk/gtkuimanager.c +++ b/gtk/gtkuimanager.c @@ -497,7 +497,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable, g_signal_connect (widget, "hierarchy-changed", G_CALLBACK (child_hierarchy_changed_cb), GTK_UI_MANAGER (buildable)); - return G_OBJECT (widget); + return g_object_ref (widget); } static void |