generator: Fix abstract class generation

Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
This commit is contained in:
Stephan Sundermann 2012-10-21 12:40:56 +02:00 committed by Bertrand Lorentz
parent 496992cb25
commit 0b355e0335

View file

@ -150,7 +150,7 @@ namespace GtkSharp.Generation {
sw.WriteLine ("\t[Obsolete]"); sw.WriteLine ("\t[Obsolete]");
foreach (string attr in custom_attrs) foreach (string attr in custom_attrs)
sw.WriteLine ("\t" + attr); sw.WriteLine ("\t" + attr);
sw.Write ("\t{0} partial {1}class " + Name, IsInternal ? "internal" : "public", IsAbstract ? "abstract " : ""); sw.Write ("\t{0} {1}partial class " + Name, IsInternal ? "internal" : "public", IsAbstract ? "abstract " : "");
string cs_parent = table.GetCSType(Elem.GetAttribute("parent")); string cs_parent = table.GetCSType(Elem.GetAttribute("parent"));
if (cs_parent != "") { if (cs_parent != "") {
di.objects.Add (CName, QualifiedName); di.objects.Add (CName, QualifiedName);