Get all rows in Gtk2::ListStore



Hi All,

I have defined the following ListStore:

my $list_store = Gtk2::ListStore->new('Glib::Int',
                                                           'Glib::String',
                                                           'Glib::String');

What is the best way to get all of the rows in the store?

At the moment I am trying something like below to try to get all of
the second column's values:

while ( $list_store->iter_next($iter) )
{
        push( @existing_classfns, $list_store->get($iter, 1) );
        $iter = $list_store->iter_next($iter);
}       

But @existing_classfns is always empty.

Many thanks,

Peter.



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