Re: .defs Issues From Java-Gnome
- From: Tim Janik <timj gtk org>
- To: Ariel Rios <ariel arcavia com>
- Cc: Dan Bornstein <danfuzz milk com>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: .defs Issues From Java-Gnome
- Date: Thu, 14 Dec 2000 00:59:59 +0100 (CET)
On Wed, 13 Dec 2000, Ariel Rios wrote:
>
> > boxed was introduced to let language bindings deal with plain C structures,
> > such as
> > struct _GtkRequisition
> > {
> > gint width;
> > gint height;
> > };
> >
> This is not completely true. Boxed means a pointer to some structure. You
> have to explicitely manage the lifetime of those structures by invoking
> some functions at the
> right times.
>
> For wrapping simple C structures we do have
> (define-struct)
this is true, (define-struct) doesn't tell you what signal/function
passes what structure as parameters, the boxed type ids do.
those "some functions at the right times" are _copy/_free for boxed
types, and really nothing more, unless you do know how to access
specifics, e.g. through a (define-struct), but that's a .defs file
thingy, not soemthing gtk gives you.
>
> It might be interesting to se Marius' origial proposal at:
> gnome-guile/guile-gtk/PROPOSAL
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]