Re: [ANN] ocaml-gir 0.9 alpha - binding generator for glib2-based libs

Adrien <[email protected]> Mon, 12 Oct 2009 14:13:26 +0200
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
On 12/10/2009, Jacques Garrigue <[email protected]> wrote:
> From: Adrien <[email protected]>
>> There is one problem for the webkit-gtk bindings however: webkit-gtk
>> now requires that "the thread system is initialized" which is done
>> through a call to g_init_thread() which isn't currently available in
>> lablgtk2 (I've seen some commented code reference to it however).
>> Would it be possible that this function is added in future releases?
>
> I certainly see no problem in adding it to lablgtk.
> The reason there is no such binding is only that lablgtk (even in its
> threaded version) doesn't use glib threads (relying on ocaml threads
> for synchronization is simpler). But I don't think glib threads would
> break anything.

OK, thanks a lot. :)

> In the midtime, if you are building your own bindings, there should be
> no problem in adding it on your side. This is just some C code, which
> doesn't really need to be bound on the ML side.

That's what I've been doing, it's about 5 lines of C and 1 line of ocaml.

 ---

Adrien Nader