Package: gtk

Function gtk-container-remove

Lambda List

gtk-container-remove (container widget)


container -- a gtk-container widget
widget -- a current child of container


Removes widget from container. widget must be inside container. Note that container will own a reference to widget, and that this 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 is not inside a container, using the g-object-ref function. If you do not want to use widget again it is usually more efficient to simply destroy it directly using the gtk-widget-destroy function since this will remove it from the container and help break any circular reference count cycles.

See also