Re: GtkCTree

From: Date: Wed, 27 Oct 2004 16:10:41 +0000
Subject: Re: GtkCTree
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5169@lists.php.net to get a copy of this message
Hello
what exactly is a column in a CTree? i keep getting errors like this A GtkCTree is like a GtkCList (that means it can have multiple columns), just with indents and parent-child relations.
Warning: insert_node(): the text array size (2) does not match the number of columns in the ctree (1) in /home/idle/PhpIRC/system/class/GUI.class.php on line 89 When you instantiate the tree, you have to pass an array of column titles:
$tree = &new GtkCTree(1, 0, array( 'Server', 'IP');
When inserting a node, you have to pass exactly the same number of text fields to the insert_node function (2 in our case) Regards/MfG, Christian Weiske -- XMMS is playing now:

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5169) next »