Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Jacques Garrigue <garrigue@m...>
Subject: Re: [Caml-list] Wrapping new widgets in lablgtk
From: "Yaron Minsky" <yminsky@cs.cornell.edu>

> 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),
gnomeDruid.ml (ML low level interface), gnoDruid.mli,
gnoDruid.ml (class interface).

Jacques Garrigue