[10260] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: widget deallocation

daemon@ATHENA.MIT.EDU (Elliot Lee)
Wed Nov 18 22:45:54 1998

Date: Wed, 18 Nov 1998 22:45:47 -0500 (EST)
From: Elliot Lee <sopwith@redhat.com>
To: gtk-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981118211106.10614B-100000@styx.phy.vanderbilt.edu>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Wed, 18 Nov 1998, C.J. Beyer wrote:

> Is there a way to remove widgets from containers and destroy them?
>
> In particular I want to have some dynamic menuitems on my File
> menu, like a list of currently open files.

gtk_container_remove(GTK_CONTAINER(menu), GTK_WIDGET(menuitem));

It should work fine...
-- Elliot
"In film you will find four basic story lines. Man versus man, man
 versus nature, nature versus nature, and dog versus vampire."
    - Steven Spielberg

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post