mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 07:53:17 +02:00
generator: fixed native struct parent
This commit is contained in:
parent
edc339baf5
commit
c5b04cb70e
@ -78,7 +78,7 @@ namespace GtkSharp.Generation
|
|||||||
if (IsDeprecated)
|
if (IsDeprecated)
|
||||||
sw.WriteLine ("\t[Obsolete]");
|
sw.WriteLine ("\t[Obsolete]");
|
||||||
string access = IsInternal ? "internal" : "public";
|
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 ();
|
sw.WriteLine ();
|
||||||
|
|
||||||
GenNativeStruct (gen_info);
|
GenNativeStruct (gen_info);
|
||||||
@ -135,7 +135,7 @@ namespace GtkSharp.Generation
|
|||||||
sw.WriteLine ();
|
sw.WriteLine ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sw.Write ("public {0} (IntPtr raw) : base (raw) {}", Name);
|
sw.Write ("public {0} (IntPtr raw) : base (raw) {{}}", Name);
|
||||||
|
|
||||||
base.GenCtors (gen_info);
|
base.GenCtors (gen_info);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user