[Gtk-sharp-list] [patch] API fixes/bugs

Mike Kestner mkestner@speakeasy.net
01 Apr 2003 21:23:58 -0600

On Fri, 2003-03-28 at 02:08, Lee Mallabone wrote:

> I've attached a patch that fixes a bug with GetLabelAlign() in 'Frame'
> and most of the reported 'Widget' bugs.

Looks good, please commit. Thanks.

> However, there are strange things going on with 'ref' parameters. In
> Widget.Intersect(), the parameters are marked as 'ref' in the native C
> function, and also as 'ref' *inside* the implementation of Intersect().
> However, on the actual C# method signature of Widget.Intersect(), there
> are no 'ref' parameters. Would I be right in thinking this is a bug?
> (Widget.SizeRequest also exhibits this behaviour).

Yeah, the structs are marshaled by ref to the native side, because the C
API can't receive them by value.  It looks to me like the intersection
param of Intersect needs to be marked "out" in the xml.

Mike Kestner <mkestner@speakeasy.net>