2005-08-04 Mike Kestner <mkestner@novell.com>

* generator/Ctor.cs : call Finish and HandleException for static ctor
	method bodies. [Fixes #75493]

svn path=/trunk/gtk-sharp/; revision=47998
This commit is contained in:
Mike Kestner 2005-08-04 14:41:11 +00:00
parent e299e65c8a
commit 3e19a1d102
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-04 Mike Kestner <mkestner@novell.com>
* generator/Ctor.cs : call Finish and HandleException for static ctor
method bodies. [Fixes #75493]
2005-08-03 Mike Kestner <mkestner@novell.com>
* bootstrap : use gnome and vfs 2.10 api.

View file

@ -76,12 +76,15 @@ namespace GtkSharp.Generation {
Body.Initialize(gen_info, false, false, "");
sw.Write("\t\t\treturn ");
sw.Write("\t\t\t" + name + " result = ");
if (container_type is StructBase)
sw.Write ("{0}.New (", name);
else
sw.Write ("new {0} (", name);
sw.WriteLine (CName + "(" + Body.GetCallString (false) + "));");
Body.Finish (sw, "");
Body.HandleException (sw, "");
sw.WriteLine ("\t\t\treturn result;");
}
public void Generate (GenerationInfo gen_info)