2003-10-11 Mike Kestner <mkestner@ximian.com>

* generator/OpaqueGen.cs (FromNativeReturn): just do a
	new on the type.  GLib.Opaque.GetOpaque was apparently an
	homage to GetObject that just seems wrong.

svn path=/trunk/gtk-sharp/; revision=18893
This commit is contained in:
Mike Kestner 2003-10-11 21:33:16 +00:00
parent 45bc875da7
commit 03ac3ab7fe
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2003-10-11 Mike Kestner <mkestner@ximian.com>
* generator/OpaqueGen.cs (FromNativeReturn): just do a
new on the type. GLib.Opaque.GetOpaque was apparently an
homage to GetObject that just seems wrong.
2003-10-11 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated

View file

@ -17,12 +17,12 @@ namespace GtkSharp.Generation {
{
}
public override String FromNative(String var)
public override string FromNative(string var)
{
return "(" + QualifiedName + ") GLib.Opaque.GetOpaque(" + var + ")";
return "new " + QualifiedName + "(" + var + ")";
}
public override String FromNativeReturn(String var)
public override string FromNativeReturn(string var)
{
return FromNative (var);
}