Re: pixbuf in a treestor




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]