Re: save additional Information in Treestore/Liststore
- From: Michael Hartmann <michael hartmann as-netz de>
- To: gtk-perl-list gnome org
- Subject: Re: save additional Information in Treestore/Liststore
- Date: Mon, 28 May 2007 13:15:33 +0200
Hi,
thank you. Now I got it. :)
--Michael
On Mon, 2007-05-28 at 12:52 +0200, Michael Hartmann wrote:
Hi,
that was my first guess, but when I try, I get:
can't set value for column 5, model only has 5 columns at ...
I tried:
foreach my $file (@files) {
my $iter = $self->{liststore}->append;
$self->{liststore}->set($iter, map { $_ => "[$_]" } 1..5);
}
you're adding from column 1, and not from column 0.
also: you have to define the number and type of columns you need at
construction time, you cannot change them later.
ciao,
Emmanuele.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]