2005-05-13 Mike Kestner <mkestner@novell.com>
* generator/MethodBody.cs : don't create a new destroy notify delegate, just use GLib.DestroyHelper.NotifyHandler directly. svn path=/trunk/gtk-sharp/; revision=44504
This commit is contained in:
parent
3f2252ad82
commit
9ac721885b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-05-13 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* generator/MethodBody.cs : don't create a new destroy notify
|
||||||
|
delegate, just use GLib.DestroyHelper.NotifyHandler directly.
|
||||||
|
|
||||||
2005-05-11 Mike Kestner <mkestner@novell.com>
|
2005-05-11 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* glib/Object.cs : mark Dispose virtual.
|
* glib/Object.cs : mark Dispose virtual.
|
||||||
|
|
|
@ -152,7 +152,7 @@ namespace GtkSharp.Generation {
|
||||||
|
|
||||||
sw.WriteLine (indent + "\t\t\t\t{0}_wrapper = new {1} ({0});", name, wrapper);
|
sw.WriteLine (indent + "\t\t\t\t{0}_wrapper = new {1} ({0});", name, wrapper);
|
||||||
sw.WriteLine (indent + "\t\t\t\t{0} = (IntPtr) GCHandle.Alloc ({1}_wrapper);", parameters [i + 1].Name, name);
|
sw.WriteLine (indent + "\t\t\t\t{0} = (IntPtr) GCHandle.Alloc ({1}_wrapper);", parameters [i + 1].Name, name);
|
||||||
sw.WriteLine (indent + "\t\t\t\t{0} = new {1} (GLib.DestroyHelper.NotifyHandler);", parameters [i + 2].Name, parameters [i + 2].CSType);
|
sw.WriteLine (indent + "\t\t\t\t{0} = GLib.DestroyHelper.NotifyHandler;", parameters [i + 2].Name, parameters [i + 2].CSType);
|
||||||
sw.WriteLine (indent + "\t\t\t}");
|
sw.WriteLine (indent + "\t\t\t}");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue