Re: Check Gtk2::ListStore empty or not



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]