I am trying to insert a stock icon into my GTK treeview, tried a few things,
but have not had any luck so far. Here is what I think should work:
Gtk.ListStore logStore = new Gtk.ListStore (typeof (Gdk.Pixbuf), typeof
(string));
Gtk.Image icon = new Gtk.Image(Stock.Cdrom, IconSize.Dialog);
iconPixbuf = icon.Pixbuf;
logStore.AppendValues (iconPixbuf, "Testing");

Sadly, this gives me a warning at runtime:
Gtk-CRITICAL **: gtk_image_get_pixbuf: assertion `image->storage_type ==
GTK_IMAGE_PIXBUF || image->storage_type == GTK_IMAGE_EMPTY' failed
What is this all about? Why did that assertion fail?
-- 
View this message in context: 
http://www.nabble.com/Use-stock-icon-in-GTK-treeview--tp24025993p24025993.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to