guile-gtk-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using/wrapping container?


From: Jan Nieuwenhuizen
Subject: Re: using/wrapping container?
Date: Tue, 16 Nov 2004 16:18:14 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Andy Wingo writes:

Andy,

> An interesting problem.

I thought so.

> See the recent thread on gtk-devel-list about brokenness in
> libgnomecanvas; I wrote gst-editor with it a long time ago, and was OK,
> but it seems the tides are shifting.

Yes, I very much hope we'll get some sort of well supported canvas.
Until then, GnomeCanvas is a viable option.

> Anyway, the problem is that although g-wrap can make nice wrap/unwrap
> procedures for boxed objects as function arguments/return values,
> guile-gobject doesn't know about them when marshalling/demarshalling
> GValue types.

Aha.  Ok, I thought I was missing something.

> I've been meaning to get around to linking these things,
> and I think with the new wrap-custom-pointer! macros in (gnome gw
> support gobject) we might have the right abstraction to do this. I'll
> get around to it eventually, but if you want to take a stab at it, go
> right ahead.
>
> I think the solution will require a registry of { gtype, marshal,
> demarshal } structs in glib/gnome/gobject/gvalue.c. The prototypes would
> be like
>
> GValue* (*marshal) (SCM value)
> SCM (*demarshal) (GValue *value)
>
> And gtype would be the gtype.
>
> Patches welcome :-)

Thanks a lot for the explanation.  I doubt if I get around doing this
any time soon, but I cannot promise to leave it alone :-)

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]