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:
parent
45bc875da7
commit
03ac3ab7fe
2 changed files with 9 additions and 3 deletions
|
@ -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>
|
2003-10-11 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* gtk/gtk-api.xml : regenerated
|
* gtk/gtk-api.xml : regenerated
|
||||||
|
|
|
@ -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);
|
return FromNative (var);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue