Delivered-To: Lablgtk at yquem.inria.fr Message-ID: <480896AC.7090503 at irisa.fr> Date: Fri, 18 Apr 2008 14:40:12 +0200 From: Sebastien Ferre Organization: IRISA MIME-Version: 1.0 To: Lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] How do I make a pixbuf column for GTree.icon_view? References: <20080301120648.GA7677 at annexia.org> <20080305154800.GA14954 at annexia.org> <1204782413.7051.5.camel at edouard-laptop> <20080418115518.GA12072@annexia.org> In-Reply-To: <20080418115518.GA12072 at annexia.org> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Length: 790 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 _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk