2004-05-23 Mike Kestner <mkestner@ximian.com>

* generator/SignalHandler.cs : put back the ObjectGen hack
	for param wrapping.  [Fixes #58876]

svn path=/trunk/gtk-sharp/; revision=27940
This commit is contained in:
Mike Kestner 2004-05-24 02:25:16 +00:00
parent e7130d9838
commit ca91d3c85f
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-05-23 Mike Kestner <mkestner@ximian.com>
* generator/SignalHandler.cs : put back the ObjectGen hack
for param wrapping. [Fixes #58876]
2004-05-22 Mike Kestner <mkestner@ximian.com> 2004-05-22 Mike Kestner <mkestner@ximian.com>
* configure.in : require mono-0.91.99. Sorry, but we need to * configure.in : require mono-0.91.99. Sorry, but we need to

View file

@ -146,7 +146,10 @@ namespace GtkSharp.Generation {
sw.WriteLine("\t\t\tif (arg{0} == IntPtr.Zero)", idx); sw.WriteLine("\t\t\tif (arg{0} == IntPtr.Zero)", idx);
sw.WriteLine("\t\t\t\targs.Args[{0}] = null;", idx - 1); sw.WriteLine("\t\t\t\targs.Args[{0}] = null;", idx - 1);
sw.WriteLine("\t\t\telse {"); sw.WriteLine("\t\t\telse {");
sw.WriteLine("\t\t\t\targs.Args[" + (idx-1) + "] = " + table.FromNative (ctype, "arg" + idx) + ";"); if ((wrapper != null) && wrapper is ObjectGen)
sw.WriteLine("\t\t\t\targs.Args[" + (idx-1) + "] = GLib.Object.GetObject(arg" + idx + ");");
else
sw.WriteLine("\t\t\t\targs.Args[" + (idx-1) + "] = " + table.FromNative (ctype, "arg" + idx) + ";");
sw.WriteLine("\t\t\t}"); sw.WriteLine("\t\t\t}");
} else { } else {
sw.WriteLine("\t\t\targs.Args[" + (idx-1) + "] = " + table.FromNative (ctype, "arg" + idx) + ";"); sw.WriteLine("\t\t\targs.Args[" + (idx-1) + "] = " + table.FromNative (ctype, "arg" + idx) + ";");