summaryrefslogtreecommitdiff
path: root/gtk/gtkuimanager.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-01-13 19:25:29 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-01-13 19:25:29 +0000
commit92363229635b93a3a5c1914336b5d594122e5836 (patch)
tree57f8734a68c5024f95edb467dd74ed14cab87e84 /gtk/gtkuimanager.c
parent85673355a531dea8eba362c7d38a940eab8613f6 (diff)
downloadgtk+-92363229635b93a3a5c1914336b5d594122e5836.tar.gz
Add hints about the lifecycle of widgets. (#159503, Christian Persch)
2005-01-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about the lifecycle of widgets. (#159503, Christian Persch)
Diffstat (limited to 'gtk/gtkuimanager.c')
-rw-r--r--gtk/gtkuimanager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c
index e507a75e00..439cfc8ec3 100644
--- a/gtk/gtkuimanager.c
+++ b/gtk/gtkuimanager.c
@@ -736,6 +736,11 @@ gtk_ui_manager_get_accel_group (GtkUIManager *self)
*
* Note that the widget found by following a path that ends in a &lt;menu&gt;
* element is the menuitem to which the menu is attached, not the menu itself.
+ *
+ * Also note that the widgets constructed by a ui manager are not tied to
+ * the lifecycle of the ui manager. If you add the widgets returned by this
+ * function to some container or explicitly ref them, they will survive the
+ * destruction of the ui manager.
*
* Return value: the widget found by following the path, or %NULL if no widget
* was found.