From c5b04cb70e3d8279a4fb622e6b6c38138c2a393e Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Thu, 29 Aug 2013 16:14:28 +0200 Subject: [PATCH] generator: fixed native struct parent --- generator/NativeStructGen.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/NativeStructGen.cs b/generator/NativeStructGen.cs index 09d7767fe..00bf25c16 100644 --- a/generator/NativeStructGen.cs +++ b/generator/NativeStructGen.cs @@ -78,7 +78,7 @@ namespace GtkSharp.Generation if (IsDeprecated) sw.WriteLine ("\t[Obsolete]"); string access = IsInternal ? "internal" : "public"; - sw.WriteLine ("\t" + access + " partial class {0} : IEquatable<{0}>{1} {{", Name, Parent == null ? ", GLib.IWrapper" : ""); + sw.WriteLine ("\t" + access + " partial class {0} : {1} IEquatable<{0}> {{", Name, Parent == null ? "GLib.IWrapper," : (Parent.QualifiedName + ",")); sw.WriteLine (); GenNativeStruct (gen_info); @@ -135,7 +135,7 @@ namespace GtkSharp.Generation sw.WriteLine (); } else - sw.Write ("public {0} (IntPtr raw) : base (raw) {}", Name); + sw.Write ("public {0} (IntPtr raw) : base (raw) {{}}", Name); base.GenCtors (gen_info); }