Prolems with liststore insert_with valuesv



Hi
I am trying to use insert_with_valuesv to populate a liststore as follws

my ($resultmodel,$result)=@_;
    no strict 'refs';
    #print $resultmodel;
    my @cols=0 .. scalar @{$result->[0]} -1;

    foreach my $f (@{$result}){

    my $iter=$resultmodel->insert_with_valuesv(-1,\@cols,$f);
}
$result is an arrayref passed to the sub and resultmodel is the liststore

Unfortunately I am getting 'Cannot convert arbitrary SV to GValue' with I assume $f which is an array ref
As far as I can see this should work
Any ideeas what I am doing wrong?



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