Re: CTree get_text (was RE:setting object data (how do I?))
- From: 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 15:55:22 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]