[Gtk-sharp-list] TreeView with Pixbuf

Gaston Alfredo Acuse hellogaston@hotmail.com
Wed, 19 May 2004 00:55:13 -0300

can you show me why this funtion don't display the icon in the treeview?

	private void PopulateEntities ()
		Gtk.Image image= new Gtk.Image();
		image.Pixbuf = new Gdk.Pixbuf("icon.png");
		TreeStore store = new TreeStore (typeof (Gdk.Pixbuf));
		treeview_entities.AppendColumn ("label", new CellRendererPixbuf (), 
"pixbuf", 0);
		store.AppendValues (image);
		treeview_entities.Model = store;
		treeview_entities.HeadersVisible = true;

where treeview_entites is defined like:
	[Glade.Widget] Gtk.TreeView treeview_entities;

Thank you for your help.

The new MSN 8: smart spam protection and 2 months FREE*