mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 00:46:56 +00:00
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
|
@ -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>
|
2009-04-27 Christian Hoff <christian_hoff@gmx.net>
|
||||||
|
|
||||||
* gtk/Widget.custom: Implement signal registration for the
|
* gtk/Widget.custom: Implement signal registration for the
|
||||||
|
|
|
@ -238,8 +238,11 @@ namespace GtkSharp.Generation {
|
||||||
if (PassAs != "out")
|
if (PassAs != "out")
|
||||||
result += " = " + (gen as IManualMarshaler).AllocNative (CallName);
|
result += " = " + (gen as IManualMarshaler).AllocNative (CallName);
|
||||||
return new string [] { result + ";" };
|
return new string [] { result + ";" };
|
||||||
} else if (PassAs == "out" && CSType != MarshalType)
|
} else if (PassAs == "out" && CSType != MarshalType) {
|
||||||
return new string [] { gen.MarshalType + " native_" + CallName + ";" };
|
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];
|
return new string [0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue