- From: Brett Granger <bdgranger alum mit edu>
- To: Ronald Roth <rroth uiuc edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_container_remove
- Date: Tue, 16 Jul 2002 13:55:26 -0400
Ronald Roth wrote:
does gtk_container_remove destroy the widget that is being removed?
A widget will be automagically destroyed if it's refcount goes to 0.
Generally a widget in a container is in such a case. Thus if you don't
want it destroyed, you should ref it before removing it just to be
safe... Otherwise, the ref counting mechanism should take care of it
for you, as long as someone isn't holding onto a ref by mistake.
In my program, I have a
but each time, gtk_widget_destroy complains that assertion
GTK_IS_WIDGET(widget) fails. What is gtk_container_remove doing that
btw, tristan, thanks for the pointer to gtk_container_remove. Except
for the above, it works beautifully.
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
] [Thread Prev