Re: pixbuf in a treestor
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: pixbuf in a treestor
- Date: Thu, 23 Jun 2005 09:08:54 -0400 (EDT)
The Saltydog said:
$model = Gtk2::TreeStore->new (qw/
Glib::String Glib::String Gtk2::Gdk::Pixbuf Glib::String
Glib::String Glib::String / );
set the column:
$cell = Gtk2::CellRendererPixbuf->new;
$col = Gtk2::TreeViewColumn->new;
$col->pack_start($cell,2);
$col->add_attribute ($cell, pixbuf => 0);
Column 0 is the name. Use "pixbuf => 2", instead.
...
But the column with the pixbuf is empty. No errors, the "text" columns are
ok...
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]