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:
parent
1826172e94
commit
5f4cb8cc13
2 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* gtk/TextBuffer.custom (Text): Add a new Text property.
|
||||
|
|
|
@ -78,7 +78,7 @@ namespace GtkSharp.Generation {
|
|||
private string GetHandlerName (out string argsname)
|
||||
{
|
||||
if (marsh.EndsWith (".voidObjectSignal")) {
|
||||
argsname = "EventArgs";
|
||||
argsname = "System.EventArgs";
|
||||
return "EventHandler";
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine("\t\t\t\tif (EventList[" + cname + "] == null)");
|
||||
sw.Write("\t\t\t\t\tSignals[" + cname + "] = new " + qual_marsh);
|
||||
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.WriteLine("\"));");
|
||||
sw.WriteLine("\t\t\t\tEventList.AddHandler(" + cname + ", value);");
|
||||
|
|
Loading…
Reference in a new issue