2008-11-28 Mike Kestner <mkestner@novell.com>

* 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
This commit is contained in:
Mike Kestner 2008-11-28 20:16:26 +00:00
parent 6a9baad400
commit 0018a5a4f0
2 changed files with 6 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2008-11-28 Mike Kestner <mkestner@novell.com>
* 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 <sdelcroix@novell.com>
* gtk/Image.custom:

View File

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