Re: Problems with node_get_text()
| From: | epplestun | Date: | Mon, 15 Dec 2003 18:38:06 +0000 |
| Subject: | Re: Problems with node_get_text() | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4297@lists.php.net to get a copy of this message | ||
Hi
I solve my problem with this code:
$node = $this->widget['tools'] -> selection;
list ($string $spacing, $pixmap, $mask) = $this->widget['clients'] ->
node_get_pixtext($node[0], 0);
if you work with Glade and GtkCTree the method node_get_text dont works
fine :-( you need to use the node_get_pixtext node
regards
Ivan Rodriguez
El lun, 15 de 12 de 2003 a las 19:24, epplestun escribió:
> Hi
>
> I have a small problem with the method node_get_text(GTKCTREENODE,
> INTERGER), I have this code:
>
> $this->widget['tools'] -> connect('tree_select_row',
> array(&$this,
> '__buttonPressEventCallback'));
>
>
> function __buttonPressEventCallback() {
> $node = $this->widget['tools'] -> selection;
> echo $this->widget['tools'] ->node_get_text($node[0], 1);
> }
>
> The function return this:
>
> Warning: node_get_text() cannot get text value in
> /root/Proyectos/DikodeCA/dikodeca.php on line 145
>
> Why this warning?¿ Is very extrange because in other applications I use
> the same code and works perfectly ....
>
> Regards
> Ivan Rodriguez