Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Wrapping new widgets in lablgtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-06-16 (03:22)
From: Jacques Garrigue <garrigue@m...>
Subject: Re: [Caml-list] Wrapping new widgets in lablgtk
From: "Yaron Minsky" <>

> I was wondering if anyone could give me a sense of how one would go
> about wrapping a GTK+ widget that is not already wrapped by lablgtk.
> I understand that part of the lablgtk wrappers are generated
> automatically, but I have no sense of how much manual
> tweaking/expertise is required.  The library we're thinking of
> wrapping up is GtkSheet from Gtk+Extra.

The automated part only concerns enumerations (varcc) and properties
(propcc). But it seems that GtkSheet doesn't use properties, so you
don't need propcc.

You should look at how things are wrapped inside lablgtk2.
A good example not using propcc is GnomeDruid. It uses 5 files:
gnomeui_tags.var (enumerations), ml_gnomedruid.c (C wrappers), (ML low level interface), gnoDruid.mli, (class interface).

Jacques Garrigue