Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Gtk2::TreeView get all childs of a parent,an easy way ?

by ultibuzz (Monk)
on Jun 16, 2013 at 16:00 UTC ( #1039221=perlquestion: print w/replies, xml ) Need Help??
ultibuzz has asked for the wisdom of the Perl Monks concerning the following question:

i was wondering if there is an easy way to get all childs from a Parent in a TreeView.
Currently i iterate over everything and use these 2 functions

boolean = $tree_store->is_ancestor ($iter, $descendant) integer = $tree_store->iter_depth ($iter)
kind regards

Replies are listed 'Best First'.
Re: Gtk2::TreeView get all childs of a parent,an easy way ?
by Anonymous Monk on Jun 17, 2013 at 00:24 UTC

      OMG...,thanks a lot
      i totally forgot about the TreeModel while coding ...,
      and i was wondering why the heck the TreeView has no Ordinary data functions for it's display hierarchy

      now i'll use the day to simplify the code with TreeModel functions, and get rid of all my crazy buildarounds :D

      kind regards

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1039221]
Approved by Happy-the-monk
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-04-24 18:40 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (444 votes). Check out past polls.