Re: save additional Information in Treestore/Liststore



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.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]