Re: treeview looks like a list not as a tree





On Thu, Jul 23, 2009 at 9:46 PM, anguila <anguila gmail com> wrote:
Hi
I dont understand why in my treeview looks like a list and not as a tree, i have added a parent in each set and the child doesnt added:

and there in a piece of code i use that:
...
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ my $obj= $tree_store->append(undef);

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ $tree_store->set($obj,0=>$def_link, 1=>$logo_server);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ my $child= $tree_store->append($obj);

Try to see if you replace this line:

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ $tree_store->set($fill,0=>"CHILD",1=>$logo_server);

With :
$tree_store->set($child,0=>"CHILD",1=>$logo_server);

--
Emmanuel Rodriguez


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