2009-04-28 Mike Kestner <mkestner@novell.com>

* generator/Parameters.cs: ref parameter marshaling fix.
	[Fixes #498472] Patch by Sebastian Dröge.

svn path=/trunk/gtk-sharp/; revision=132863
This commit is contained in:
Mike Kestner 2009-04-28 17:09:41 +00:00
parent e886e07a1f
commit 9e3a996ea6
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-04-28 Mike Kestner <mkestner@novell.com>
* generator/Parameters.cs: ref parameter marshaling fix.
[Fixes #498472] Patch by Sebastian Dröge.
2009-04-27 Christian Hoff <christian_hoff@gmx.net>
* gtk/Widget.custom: Implement signal registration for the

View File

@ -238,8 +238,11 @@ namespace GtkSharp.Generation {
if (PassAs != "out")
result += " = " + (gen as IManualMarshaler).AllocNative (CallName);
return new string [] { result + ";" };
} else if (PassAs == "out" && CSType != MarshalType)
} else if (PassAs == "out" && CSType != MarshalType) {
return new string [] { gen.MarshalType + " native_" + CallName + ";" };
} else if (PassAs == "ref" && CSType != MarshalType) {
return new string [] { gen.MarshalType + " native_" + CallName + " = (" + gen.MarshalType + ") " + CallName + ";" };
}
return new string [0];
}