[705] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: deleting widgets

daemon@ATHENA.MIT.EDU (Owen Taylor)
Sun Aug 10 12:03:23 1997

To: gtk-list@redhat.com
From: Owen Taylor <owt1@cornell.edu>
Date: 10 Aug 1997 12:04:47 -0400
In-Reply-To: Jeff's message of 10 Aug 1997 08:10:55 -0700
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Jeff <schizm@pc-4374.bc.rogers.wave.ca> writes:

> once I define a window, put in a menubar, have a bunch of widgets taking
> up areas of the window, how do I 'delete' those widgets so that I can
> put other ones in their place?  lets say the program starts, the whole window
> is dedicated to a GtkImage for a title screen, then i want the GtkImage
> to go away, and some other widgets to replace it.....

gtk_widget_destroy (widget) should work. If you want it to come back
later, you could use gtk_widget_hide (widget). 

		                      Owen

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


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