From 92363229635b93a3a5c1914336b5d594122e5836 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 13 Jan 2005 19:25:29 +0000 Subject: [PATCH] Add hints about the lifecycle of widgets. (#159503, Christian Persch) 2005-01-13 Matthias Clasen * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about the lifecycle of widgets. (#159503, Christian Persch) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkuimanager.c | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7159c395db..7672951b56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-01-13 Matthias Clasen + * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about + the lifecycle of widgets. (#159503, Christian Persch) + * demos/gtk-demo/main.c (create_text): Use monospace for the source code view. (#163526, Theerud Lawtrakul) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7159c395db..7672951b56 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-01-13 Matthias Clasen + * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about + the lifecycle of widgets. (#159503, Christian Persch) + * demos/gtk-demo/main.c (create_text): Use monospace for the source code view. (#163526, Theerud Lawtrakul) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7159c395db..7672951b56 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2005-01-13 Matthias Clasen + * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about + the lifecycle of widgets. (#159503, Christian Persch) + * demos/gtk-demo/main.c (create_text): Use monospace for the source code view. (#163526, Theerud Lawtrakul) 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.