Re: How do I make a pixbuf column for GTree.icon_view?
Sebastien Ferre <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Organization | IRISA |
| Message-ID | <[email protected]> |
Richard Jones wrote: > On Thu, Mar 06, 2008 at 06:46:53AM +0100, Edouard wrote: >> It seems that creating a GdkPixbuf.pixbuf column can be done with : >> >> let cols = new column_list >> let pixbuf_col = cols#add Gobject.Data.object > > For reference the above doesn't work. In fact you have to do: > > let pixbuf_col = cols#add (Gobject.Data.gobject_by_name "GdkPixbuf") in > > I guess I must be the first to try to use GTree.icon_view ... I also did it recently. I had the same difficulty, and found the solution from the labgtk examples. It's true it is not much documented, but still, it is realy nice that it exists! Sébastien