2002-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* generator/Signal.cs: generate correct type name for EventArgs.

svn path=/trunk/gtk-sharp/; revision=9507
This commit is contained in:
Gonzalo Paniagua Javier 2002-12-09 23:36:18 +00:00
parent 1826172e94
commit 5f4cb8cc13
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* generator/Signal.cs: generate correct type name for EventArgs.
2002-11-29 Duncan Mak <duncan@ximian.com> 2002-11-29 Duncan Mak <duncan@ximian.com>
* gtk/TextBuffer.custom (Text): Add a new Text property. * gtk/TextBuffer.custom (Text): Add a new Text property.

View File

@ -78,7 +78,7 @@ namespace GtkSharp.Generation {
private string GetHandlerName (out string argsname) private string GetHandlerName (out string argsname)
{ {
if (marsh.EndsWith (".voidObjectSignal")) { if (marsh.EndsWith (".voidObjectSignal")) {
argsname = "EventArgs"; argsname = "System.EventArgs";
return "EventHandler"; return "EventHandler";
} }
@ -161,7 +161,7 @@ namespace GtkSharp.Generation {
sw.WriteLine("\t\t\t\tif (EventList[" + cname + "] == null)"); sw.WriteLine("\t\t\t\tif (EventList[" + cname + "] == null)");
sw.Write("\t\t\t\t\tSignals[" + cname + "] = new " + qual_marsh); sw.Write("\t\t\t\t\tSignals[" + cname + "] = new " + qual_marsh);
sw.Write("(this, Handle, " + cname + ", value, System.Type.GetType(\"" + argsname); sw.Write("(this, Handle, " + cname + ", value, System.Type.GetType(\"" + argsname);
if (argsname != "EventArgs") if (argsname != "System.EventArgs")
sw.Write("," + container_type.NS.ToLower() + "-sharp"); sw.Write("," + container_type.NS.ToLower() + "-sharp");
sw.WriteLine("\"));"); sw.WriteLine("\"));");
sw.WriteLine("\t\t\t\tEventList.AddHandler(" + cname + ", value);"); sw.WriteLine("\t\t\t\tEventList.AddHandler(" + cname + ", value);");