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:
parent
e886e07a1f
commit
9e3a996ea6
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue