And just for completeness, here is an example using iter_next. One could argue that the lack of callbacks make this somewhat easier to read than the foreach example.
my $iter = $model->get_iter_first(); while ($iter) { my @selected = $labels_model->get( $iter ); print @selected; $iter = $model->iter_next( $iter ); }
See also the more detailed foreach example by kikuchiyo in 11104587.
In reply to Re^2: How to printout a Gtk2::ComboBox
by swl
in thread How to printout a Gtk2::ComboBox
by dabella12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |