From f7657d313ef4dd9d7a6e4c9a955cdfe0262f78cb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Jul 2003 21:31:09 +0000 Subject: [PATCH] Doc addition. (#116501, Doug Quale) 2003-07-08 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkcontainer.c | 5 ++++- 6 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aeb527412d..37f97b968c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-07-08 Matthias Clasen + + * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) + Tue Jul 8 21:35:22 2003 Soeren Sandmann * gtk/gtktoggletoolbutton.h: remove strange #define diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index aeb527412d..37f97b968c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +2003-07-08 Matthias Clasen + + * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) + Tue Jul 8 21:35:22 2003 Soeren Sandmann * gtk/gtktoggletoolbutton.h: remove strange #define diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index aeb527412d..37f97b968c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +2003-07-08 Matthias Clasen + + * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) + Tue Jul 8 21:35:22 2003 Soeren Sandmann * gtk/gtktoggletoolbutton.h: remove strange #define diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index aeb527412d..37f97b968c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +2003-07-08 Matthias Clasen + + * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) + Tue Jul 8 21:35:22 2003 Soeren Sandmann * gtk/gtktoggletoolbutton.h: remove strange #define diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index aeb527412d..37f97b968c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +2003-07-08 Matthias Clasen + + * gtk/gtkcontainer.c (gtk_container_remove): Doc addition. (#116501, Doug Quale) + Tue Jul 8 21:35:22 2003 Soeren Sandmann * gtk/gtktoggletoolbutton.h: remove strange #define diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 5d637210c8..44483298d1 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -971,7 +971,10 @@ gtk_container_add (GtkContainer *container, * may be the last reference held; so removing a widget from its * container can destroy that widget. If you want to use @widget * again, you need to add a reference to it while it's not inside - * a container, using g_object_ref(). + * a container, using g_object_ref(). If you don't want to use @widget + * again it's usually more efficient to simply destroy it directly + * using gtk_widget_destroy() since this will remove it from the + * container and help break any circular reference count cycles. **/ void gtk_container_remove (GtkContainer *container,