Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocamlmakefile and Lablgtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <florian@h...>
Subject: Re: [Caml-list] Ocamlmakefile and Lablgtk
On Tue, Nov 13, 2001 at 12:40:47AM +0100, Markus Mottl wrote:
> It would certainly be better to have a true library file in the
> distribution rather than the "naked" compiled module file.

lablgtk comes as a library file, the problem is that every program that
uses the library must properly initialize it before it can use it.
gtkInit does just this:

(* $Id: gtkInit.ml,v 1.2 2000/03/02 08:13:15 garrigue Exp $ *)

(* Does the initialization for toplevels *)

let locale = GtkMain.Main.init ()

And that's all it does. You could do away with this file by calling
GtkMain.Main,init () in your own application.

Yours, Florian.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr