Get all rows in Gtk2::ListStore
- From: Peter E Dennis <peter edwin dennis gmail com>
- To: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: Get all rows in Gtk2::ListStore
- Date: Mon, 17 Aug 2009 23:13:58 +1000
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]