Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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

Comment on Gtk2::TreeView get all childs of a parent,an easy way ?
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-11-29 16:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls