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

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
      Alex