Hi, I have a TreeViewColumn with a pixbuf and a text renderer created with the following commands: $textrenderer = Gtk2::CellRendererText->new; $pixbufrenderer = Gtk2::CellRendererPixbuf->new; $column = Gtk2::TreeViewColumn->new; $column->pack_start($pixbufrenderer, FALSE); $column->pack_start($textrenderer, TRUE); $column->set_attributes($textrenderer, 'text' => 1); $column->set_attributes($pixbufrenderer, 'pixbuf' => 2); $treeview->append_column($column); I can now put a pixbuf into column 2 and a text in column 1 of my model (a TreeStore) and it gets displayed. So far everything is OK. But it gets displayed this way, if I don't have a pixbuf set for all rows: +-----------------------------+ | row 1 | +-----------------------------+ | pix row 2 | +-----------------------------+ | row 3 | +-----------------------------+ However, I'd like it to look like this: +-----------------------------+ | row 1 | +-----------------------------+ | pix row 2 | +-----------------------------+ | row 3 | +-----------------------------+ Can this be done? Ciao Florian
Attachment:
pgptWbSYSxcCI.pgp
Description: PGP signature