Re: GtkVBox: How to delete widgets?

From: Date: Mon, 25 Feb 2002 15:02:56 +0000
Subject: Re: GtkVBox: How to delete widgets?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1329@lists.php.net to get a copy of this message
Hi! Am 2002.02.25 13:09:51 +0100 schrieb(en) Sebastian G.:
I have a GtkVBox with a number of labels in it. I need to change the number of the labels in that box depending on what data I am collecting. -> How can I delete all the labels in that GtkVBox like I do reset a GtkCTree with | $ctree -> clear();
I think there is no function like that, but you can make your own: create an new Class like myGtkVBox which extends GtkVBox with a function clear(). In this function you can use the Array containing the childs of the GtkVBox ($gtkvbox->children) and the remove()-function of the parent-parent-class of GtkVBox (GtkContainer is parent of GtkBox is p. of GtkVBox) Christoph

« previous php.gtk.general (#1329) next »