Date: Fri, 4 Mar 2005 12:45:37 +0000 Cc: lablgtk at kaba.or.jp Subject: Re: tree view models written in ocaml Message-ID: <20050304124537.GA31729 at furbychan.cocan.org> References: <20050303234255.GA25179 at furbychan.cocan.org> <20050304.105749.112609272.andrieu at ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050304.105749.112609272.andrieu at ijm.jussieu.fr> From: Richard Jones On Fri, Mar 04, 2005 at 10:57:49AM +0100, Olivier Andrieu wrote: > Using Gobject.Data.caml is the way to go I'd say : this is the moral > equivalent of G_TYPE_POINTER (or G_TYPE_BOXED), i.e. some data, opaque for > the GtkTreeView, which is displayed using a GtkTreeCellDataFunc. It works ... I added a column to the model (but not to the view). The column has type Gobject.Data.caml, and currently I'm just storing an int in there (for testing purposes). The clever/amazing thing is that somehow type inference knows it's an int, and refuses to allow me to store anything else in there. Which is good. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com