Re: GtkCtree to array?

From: Date: Mon, 05 May 2003 22:17:05 +0000
Subject: Re: GtkCtree to array?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3347@lists.php.net to get a copy of this message
I figured out a way to do this - it's located at http://gtk.php.net/manual/en/gtk.gtkctree.method.post_recursive.php On Saturday 03 May 2003 02:29 pm, Benjamin Smith wrote: > I've got a GtkCtree() data entry area. So far, it's looking good, but I > need some way to convert the data for each node (being saved with > Node_Set_Row_Data()) into a multidimensional array. > > I'd just assumed that this wouldn't be too difficult... > > What makes this complicated is that there's no way to get the children > nodes of a node! It'd be downright easy to handle if there was such a > possibility - but there doesn't seem to be. > > Then, there's pre_recursive() and post_recursive() - and this allows me to > execute a function against all nodes - but how do I determine where in the > Ctree we are so that I can update the exported array? > > I tried something using array pointers, but you can't use a $node variable > as a key in an array... > > Does *anybody* have any sample code for converting data in a GtkCTree to an > array of whatever format? > > I can't find anything anywhere! > > -Ben

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