Re: CTree get_text (was RE:setting object data (how do I?))


I think I´ve found the correct approach:
to assign:


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.


Liviu BURCUSEL wrote:

Jim Edwards wrote:


($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};


gtk-perl-list mailing list
gtk-perl-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]