Date: Tue, 15 May 2001 14:55:42 +0200 To: Benjamin Monate Cc: Jacques Garrigue , labgtk Subject: Re: Galde support [was: Re: Accessing labels of GTree.tree_item] Message-ID: <20010515145542.A7863 at lambda.u-strasbg.fr> References: <20010511210045.3144e5bb.Benjamin.Monate at lri.fr> <20010514120202Z.garrigue at kurims.kyoto-u.ac.jp> <20010514131510.A3295 at lambda.u-strasbg.fr> <20010515181709D.garrigue at kurims.kyoto-u.ac.jp> <20010515113847.74211da1.Benjamin.Monate at lri.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010515113847.74211da1.Benjamin.Monate at lri.fr>; from Benjamin.Monate at lri.fr on Tue, May 15, 2001 at 11:38:47AM +0200 From: Sven LUTHER Sender: Sven LUTHER On Tue, May 15, 2001 at 11:38:47AM +0200, Benjamin Monate wrote: > On Tue, 15 May 2001 18:17:09 +0900 > Jacques Garrigue wrote: > > > > > Anyway, you told yourself that the 1.2 support was almost fully there. > > > > Well, glade support for one thing is still in preliminary stage. > > There is always work to be done... > > By glade support, do you mean interfacing libglade in ocaml ? > > I am currently writing a filter that takes a Glade xml file as input and > outputs a set of ocaml modules where the user just has to write the > callbacks' body. This is what glade does for C. > > What do you think of this approach ? Yes, ... i started looking into something like that a long time ago (in late 98 i think), but hadn't time for it then. Also at that time, glade would simply overwrite the already written callbacks, which is not fine. What is the current situation on it ? Also it could be done much nicer in ocaml than what happens in C. You could simply define the new interface as a functor from the set of callback functions to the interface, and let the user the responsability to fill in this 'callback' module and apply it to the functor. What do you think about this ? Friendly, Sven Luther