diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-13 19:25:29 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-13 19:25:29 +0000 |
commit | 92363229635b93a3a5c1914336b5d594122e5836 (patch) | |
tree | 57f8734a68c5024f95edb467dd74ed14cab87e84 /gtk/gtkuimanager.c | |
parent | 85673355a531dea8eba362c7d38a940eab8613f6 (diff) | |
download | gtk+-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.c | 5 |
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 <menu> * 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. |