Re: CTree get_text (was RE:setting object data (how do I?))
- From: Jim Edwards <jedwards inmet gov br>
- To: Liviu BURCUSEL <liviu mediaimage ro>
- Cc: gtk-perl <gtk-perl-list gnome org>
- Subject: Re: CTree get_text (was RE:setting object data (how do I?))
- Date: Wed, 27 Jun 2001 13:38:26 +0000
Hi,
I think I´ve found the correct approach:
to assign:
$datatree->node_set_row_data($snode,$pnode);
to retreve:
$pnode = $datatree->node_get_row_data($node);
There also seems to be a set_row_data and get_row_data somewhere, at
least I didn´t get an error when I called them, but they didn´t do
anything. I found these by poking around inside the xs.
Jim
Liviu BURCUSEL wrote:
Jim Edwards wrote:
Thanks,
($text) = $ctree->get_node_info($ctree->selection);
also works. Is it a bug that get_node_text doesn´t ???
Now how do i get the parent node?
I'm interested in that too. I worked it around by stating
#! /usr/bin /perl
[...]
$parent = $ctree->insert_node(undef, bla, bla ...);
$leaf = $ctree->insert_node($parent, bla ...);
$leaf->{parent} = $parent;
[...]
When I want to retrieve the leaf's parent I just do
$parent = $leaf->{parent};
Liviu
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]