Re: Going through a TreeStore



This time it should be right :) :

my $iter=$store->get_iter_first;        # or starting point
while ($iter)
{       # do something
        $iter=( $store->iter_children($iter)||$store->iter_next($iter) );
        unless ($iter)
        {       $iter=$store->iter_next($_) while
                        $_=$store->iter_parent($iter);
        }
}

-- 
Quentin Sculo <squentin free fr>




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