2008-09-30 Mike Kestner <mkestner@novell.com>

* generator/EnumGen.cs:
	* generator/InterfaceGen.cs:
	* generator/StructBase.cs: fix build breakage in prev commit.

svn path=/trunk/gtk-sharp/; revision=114509
This commit is contained in:
Mike Kestner 2008-09-30 21:21:53 +00:00
parent a1f8ed79de
commit efc522e7f9
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2008-09-30 Mike Kestner <mkestner@novell.com>
* generator/EnumGen.cs:
* generator/InterfaceGen.cs:
* generator/StructBase.cs: fix build breakage in prev commit.
2008-09-30 Stephane Delcroix <sdelcroix@novell.com>
* generator/CallbackGen.cs:

View File

@ -94,7 +94,8 @@ namespace GtkSharp.Generation {
if (Elem.HasAttribute("gtype"))
sw.WriteLine ("\t[GLib.GType (typeof (" + NS + "." + Name + "GType))]");
sw.WriteLine ("\t{0} enum " + Name + enum_type + " {", IsInternal ? "internal" : "public");
string access = IsInternal ? "internal" : "public";
sw.WriteLine ("\t" + access + " enum " + Name + enum_type + " {");
sw.WriteLine ();
foreach (string member in members)

View File

@ -302,7 +302,8 @@ namespace GtkSharp.Generation {
sw.WriteLine ();
sw.WriteLine ("\t[GLib.GInterface (typeof (" + Name + "Adapter))]");
sw.WriteLine ("\t{0} interface " + Name + "Implementor : GLib.IWrapper {", IsInternal ? "internal" : "public");
string access = IsInternal ? "internal" : "public";
sw.WriteLine ("\t" + access + " interface " + Name + "Implementor : GLib.IWrapper {");
sw.WriteLine ();
Hashtable vm_table = new Hashtable ();
foreach (VirtualMethod vm in vms)
@ -343,7 +344,8 @@ namespace GtkSharp.Generation {
sw.WriteLine ("\tusing System;");
sw.WriteLine ();
sw.WriteLine ("#region Autogenerated code");
sw.WriteLine ("\tpublic interface " + Name + " : GLib.IWrapper {");
string access = IsInternal ? "internal" : "public";
sw.WriteLine ("\t" + access + " interface " + Name + " : GLib.IWrapper {");
sw.WriteLine ();
foreach (Signal sig in sigs.Values) {

View File

@ -159,7 +159,8 @@ namespace GtkSharp.Generation {
if (IsDeprecated)
sw.WriteLine ("\t[Obsolete]");
sw.WriteLine ("\t[StructLayout(LayoutKind.Sequential)]");
sw.WriteLine ("\t{0} struct " + Name + " {", IsInternal ? "internal" : "public");
string access = IsInternal ? "internal" : "public";
sw.WriteLine ("\t" + access + " struct " + Name + " {");
sw.WriteLine ();
need_read_native = false;