Gtk::TreeStore insert_with_values weirdness
- From: "Jens Luedicke" <jens luedicke gmail com>
- To: "Gtk2-Perl List" <gtk-perl-list gnome org>
- Subject: Gtk::TreeStore insert_with_values weirdness
- Date: Mon, 1 Jan 2007 15:33:47 +0100
Hey,
I saw that Gtk2::TreeStore provides now the insert_with_values method
and I have a strange problem with it:
my $iter = $self->{treemodel}->insert_with_values(undef, -1,
$COL_FILEINFO, $_,
$COL_ICON, $_->get_mimetype_icon,
$COL_NAME, $_->get_basename,
);
There is nothing wrong with it, but it fails with this error:
Usage: $iter = $treestore->insert_with_values ($parent, $position,
column1, value1, ...)
The first value in each pair must be a column index number at
/home/jens/filer/Filer/FileTreePane.pm line 239.
$COL_FILEINFO and friends are Readonly variables and imported properly
(no complains with use strict). Now this: If I print $COL_FILEINFO
before the insert_with_values statement
I get no error and everything works as expected. WTF!?
Jens
--
Jens Luedicke
web: http://perldude.de/
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]