Re: GtkCTree nodes

From: Date: Thu, 27 Mar 2003 20:15:20 +0000
Subject: Re: GtkCTree nodes
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3160@lists.php.net to get a copy of this message
I ned to get the parent node o gtkctree. the var_dum og $this->gui['BBDD'] returns gtkscriolledwindow. For example if y put: $this->gui['BBDD']->seccion; I get the gtkctree selected node, but this is the child, I nedd to get the parent node. El jue, 27-03-2003 a las 18:45, rdp@talisman.mv.com escribió: > On Thu, 27 Mar 2003, epplestun wrote: > > > I can´t do this: > > > > $parent = $this->gui['BBDD']->parent; > > $name = $this->gui['BBDD']->node_get_text($parent,0); > > echo $name."\n"; > > > > > > Warning: node_get_text() expects argument 1 to be GtkCTreeNode, > > GtkScrolledWindo > > w given in c:\test\BBDD\bbdd.php on line 46 > > > > Why this?¿ > > Well, it's hard to say without seeing the rest of your code. Though it > appears that $this->gui['BBDD'] is NOT a GtkCTree node. You asked how to > get the parent of a CtkCTree node. > > What does a var_dump($this->gui['BBDD']) return ? > > --rdp > > > ----- Original Message ----- > > From: "epplestun" <epplestun@alaplaya.com> > > To: "Rich Payne" <rdp@talisman.mv.com> > > Cc: <php-gtk-general@lists.php.net> > > Sent: Thursday, March 27, 2003 6:27 PM > > Subject: Re: [PHP-GTK] GtkCTree nodes > > > > > > > thx :) > > > ----- Original Message ----- > > > From: "Rich Payne" <rdp@talisman.mv.com> > > > To: "epplestun" <epplestun@alaplaya.com> > > > Cc: <php-gtk-general@lists.php.net> > > > Sent: Thursday, March 27, 2003 6:17 PM > > > Subject: Re: [PHP-GTK] GtkCTree nodes > > > > > > > > > > > > > > > > > > $parent = $node->parent; > > > > > > > > then use the node_get_text() or node_get_pixtext() functions to get the > > > > text. > > > > > > > > --rdp > > > > > > > > On Thu, 27 Mar 2003, epplestun wrote: > > > > > > > > > Hi :-) > > > > > > > > > > How can i get the text of the parent node if I select the child node?¿ > > > > > > > > > > Example: > > > > > > > > > > |parent > > > > > |----Chlid1 > > > > > |----Child2 > > > > > |parent2 > > > > > |----Child1-2 > > > > > > > > > > If i select Child1 or child 2 how can I get the text parent ?¿ and if > > a > > > I select child1-2 the parnet2 ? can i do this?¿ > > > > > > > > > > thx :) > > > > > > > > > > > > > Rich Payne > > > > http://talisman.mv.com > > > > rdp at talisman dot mv dot com > > > > > > > > > > > > -- > > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > > > > > > > > -- > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > Rich Payne > http://talisman.mv.com > rdp at talisman dot mv dot com >

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