Gtk2::IconView / GDK_TYPE_PIXBUF



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !

I started to mess with the IconView widget and I have a problem to get
the widget to display the icons:

Gtk-CRITICAL **: gtk_icon_view_set_pixbuf_column: assertion `column_type
== GDK_TYPE_PIXBUF' failed at
/home/jens/devel/filer/Filer/FileIconView.pm line 108.

code used:

$self->[TREEMODEL] = new Gtk2::ListStore('Glib::Object', 'Glib::String',
'Glib::String');
$self->[ICONVIEW]->set_model($self->[TREEMODEL]);


$cell = new Gtk2::CellRendererPixbuf;
$col = Gtk2::TreeViewColumn->new_with_attributes("icon", $cell, pixbuf
=> 0);

$cell = new Gtk2::CellRendererText;
$col = Gtk2::TreeViewColumn->new_with_attributes("text", $cell, text => 1);

$self->[ICONVIEW]->set_pixbuf_column(0);
$self->[ICONVIEW]->set_text_column(1);

any advice?

jens


- --
Jens Luedicke
web: http://perldude.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCM02diCvkc4H0gTERAtTCAKDWOnCW7L6MYmG75n5XxN8DDsOfDACeJoHB
NZydQQXv/Gy/DtTjTxBAUjQ=
=vKkk
-----END PGP SIGNATURE-----



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