Re: Remove the nodes of a tree

From: Date: Thu, 23 Aug 2007 05:30:55 +0000
Subject: Re: Remove the nodes of a tree
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8055@lists.php.net to get a copy of this message
Fernando Correa da Conceição-3 wrote: > I have a GtkTreeView which show a tree o files. How can I remove all > childs of a node? Or I have to get each one of then and remove? > > Fernando Correa da Conceição > Hi Fernando, You'll laugh when you see the solution. It's a one-liner unset($model[$iter]). The complete sample code here: http://www.kksou.com/php-gtk2/articles/remove-nodes-from-GtkTreeView---Part-1.php It make use the GtkTreeModel functionality implemented by Andrei: http://www.nabble.com/New-GtkTreeModel-functionality-p3009641.html Regards, /kksou -- View this message in context: http://www.nabble.com/Remove-the-nodes-of-a-tree-tf4291296.html#a12287791 Sent from the Php - GTK - General mailing list archive at Nabble.com.

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