Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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:

Hi,
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
Alex

Comment on Gtk2::TreeView get all childs of a parent,an easy way ?
Download Code
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
      Alex

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1039221]
Approved by Happy-the-monk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-08-20 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (121 votes), past polls