2009-07-12 Mike Kestner <mkestner@novell.com>

* generator/Parameters.cs: another owned parameter patch from Sebastian.
	[Fixes #498498]

svn path=/trunk/gtk-sharp/; revision=137757
This commit is contained in:
Mike Kestner 2009-07-12 22:01:52 +00:00
parent bb2864a9a0
commit 45c8f24cdf
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-07-12 Mike Kestner <mkestner@novell.com>
* generator/Parameters.cs: another owned parameter patch from Sebastian.
[Fixes #498498]
2009-07-12 Mike Kestner <mkestner@novell.com>
* glib/GType.cs: fail gracefully for non-studly-case typename lookups.

View file

@ -283,7 +283,10 @@ namespace GtkSharp.Generation {
result [i] = (gen as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
return result;
} else if (PassAs != String.Empty && MarshalType != CSType)
return new string [] { CallName + " = " + gen.FromNative ("native_" + CallName) + ";" };
if (gen is HandleBase)
return new string [] { CallName + " = " + (gen as HandleBase).FromNative ("native_" + CallName, Owned) + ";" };
else
return new string [] { CallName + " = " + gen.FromNative ("native_" + CallName) + ";" };
return new string [0];
}
}