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) + "];");