partial answer to my own question if I replace insert_with_valuesv to
insert_with_values it works

On 7 August 2017 at 17:35, Mike Martin <redt...@gmail.com> wrote:

> 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?
>
>
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to