From ca91d3c85fb7bb7433cfca57b4291aa1641df3a9 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 24 May 2004 02:25:16 +0000 Subject: [PATCH] 2004-05-23 Mike Kestner * generator/SignalHandler.cs : put back the ObjectGen hack for param wrapping. [Fixes #58876] svn path=/trunk/gtk-sharp/; revision=27940 --- ChangeLog | 5 +++++ generator/SignalHandler.cs | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6453fb0bd..860c49f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-23 Mike Kestner + + * generator/SignalHandler.cs : put back the ObjectGen hack + for param wrapping. [Fixes #58876] + 2004-05-22 Mike Kestner * configure.in : require mono-0.91.99. Sorry, but we need to diff --git a/generator/SignalHandler.cs b/generator/SignalHandler.cs index 58c5eef9a..cbb4d2c1c 100644 --- a/generator/SignalHandler.cs +++ b/generator/SignalHandler.cs @@ -146,7 +146,10 @@ namespace GtkSharp.Generation { 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\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}"); } else { sw.WriteLine("\t\t\targs.Args[" + (idx-1) + "] = " + table.FromNative (ctype, "arg" + idx) + ";");