Re: Check Gtk2::ListStore empty or not
- From: Tadej BorovÅak <tadeboro gmail com>
- To: Peter E Dennis <peter edwin dennis gmail com>
- Cc: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: Re: Check Gtk2::ListStore empty or not
- Date: Mon, 27 Jul 2009 13:49:59 +0200
Hi.
I would use construct like this one:
--- CODE ---
my $iter = $list_store->get_iter_first;
if( $iter )
# Get contents of first line
my @line = $list_store->get( $iter );
else
# Add new line
--- CODE ---
This might not be the best way, but it should work.
Tadej
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]