Re: Gtk2::IconView / GDK_TYPE_PIXBUF
- From: muppet <scott asofyet org>
- To: Jens Luedicke <jens luedicke gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gtk2::IconView / GDK_TYPE_PIXBUF
- Date: Sat, 12 Mar 2005 20:24:46 -0500
On Mar 12, 2005, at 3:14 PM, Jens Luedicke wrote:
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.
it wants the column type for the pixbuf column to be Gtk2::Gdk::Pixbuf.
code used:
$self->[TREEMODEL] = new Gtk2::ListStore('Glib::Object',
'Glib::String',
'Glib::String');
you have no such column in your model.
$self->[ICONVIEW]->set_pixbuf_column(0);
change column zero from 'Glib::Object' to 'Gtk2::Gdk::Pixbuf' and it
will probably be happy.
--
If I lived in Teletubby Land, the homicide rate would be four.
-- elysse
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]