From 0018a5a4f0644d0ebb8c7829402b30ddcf167e4b Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 28 Nov 2008 20:16:26 +0000 Subject: [PATCH] 2008-11-28 Mike Kestner * generator/Signal.cs: remove ref int workaround now that we fallback to signal-specific marshalers for G_TYPE_POINTER using signals. Fixes #450119. svn path=/trunk/gtk-sharp/; revision=120254 --- ChangeLog | 6 ++++++ generator/Signal.cs | 13 ------------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44fb6da1e..b53ef1417 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-28 Mike Kestner + + * generator/Signal.cs: remove ref int workaround now that we fallback + to signal-specific marshalers for G_TYPE_POINTER using signals. + Fixes #450119. + 2008-11-26 Stephane Delcroix * gtk/Image.custom: diff --git a/generator/Signal.cs b/generator/Signal.cs index 562e707c7..c51c109de 100644 --- a/generator/Signal.cs +++ b/generator/Signal.cs @@ -308,19 +308,6 @@ namespace GtkSharp.Generation { sw.WriteLine ("\tpublic class " + EventArgsName + " : GLib.SignalArgs {"); for (int i = 1; i < parms.Count; i++) { sw.WriteLine ("\t\tpublic " + parms[i].CSType + " " + parms[i].StudlyName + "{"); - if (parms[i].PassAs == "ref" && parms[i].CSType == "int") { - // Special hack around GtkEditable::text_inserted G_TYPE_POINTER usage - sw.WriteLine ("\t\t\tget {"); - sw.WriteLine ("\t\t\t\treturn System.Runtime.InteropServices.Marshal.ReadInt32 ((IntPtr) Args[" + (i - 1) + "]);"); - sw.WriteLine ("\t\t\t}"); - sw.WriteLine ("\t\t\tset {"); - sw.WriteLine ("\t\t\t\tSystem.Runtime.InteropServices.Marshal.WriteInt32 ((IntPtr) Args[" + (i - 1) + "], value);"); - sw.WriteLine ("\t\t\t}"); - sw.WriteLine ("\t\t}"); - sw.WriteLine (); - continue; - } - if (parms[i].PassAs != "out") { sw.WriteLine ("\t\t\tget {"); sw.WriteLine ("\t\t\t\treturn (" + parms[i].CSType + ") Args[" + (i - 1) + "];");