GtkCtree to array?
| From: | Benjamin Smith | Date: | Sat, 03 May 2003 21:29:21 +0000 |
| Subject: | GtkCtree to array? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3330@lists.php.net to get a copy of this message | ||
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