mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 06:05:34 +00: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 a new issue