diff --git a/gapi.xsd b/gapi.xsd index bd6c05575..592595a63 100644 --- a/gapi.xsd +++ b/gapi.xsd @@ -206,7 +206,6 @@ - @@ -250,7 +249,6 @@ - diff --git a/generator/Method.cs b/generator/Method.cs index d8859e95c..74423b873 100644 --- a/generator/Method.cs +++ b/generator/Method.cs @@ -34,7 +34,6 @@ namespace GtkSharp.Generation { private string call; private bool is_get, is_set; private bool deprecated = false; - private bool win32_utf8_variant = false; public Method (XmlElement elem, ClassBase container_type) : base (elem, container_type) { @@ -44,16 +43,10 @@ namespace GtkSharp.Generation { deprecated = elem.GetAttributeAsBoolean ("deprecated"); } - win32_utf8_variant = elem.GetAttributeAsBoolean ("win32_utf8_variant"); - if (Name == "GetType") Name = "GetGType"; } - public bool HasWin32Utf8Variant { - get { return win32_utf8_variant; } - } - public bool IsDeprecated { get { return deprecated; @@ -204,15 +197,6 @@ namespace GtkSharp.Generation { else sw.WriteLine("\t\tstatic extern " + Safety + retval.MarshalType + " " + CName + "(" + import_sig + ");"); sw.WriteLine(); - - if (HasWin32Utf8Variant) { - sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\")]"); - if (retval.MarshalType.StartsWith ("[return:")) - sw.WriteLine("\t\t" + retval.MarshalType + " static extern " + Safety + retval.CSType + " " + CName + "_utf8(" + import_sig + ");"); - else - sw.WriteLine("\t\tstatic extern " + Safety + retval.MarshalType + " " + CName + "_utf8(" + import_sig + ");"); - sw.WriteLine(); - } } public void GenerateOverloads (StreamWriter sw) @@ -304,33 +288,14 @@ namespace GtkSharp.Generation { Body.InitAccessor (sw, Signature, indent); Body.Initialize(gen_info, is_get, is_set, indent); - if (HasWin32Utf8Variant) { - if (!retval.IsVoid) - sw.WriteLine(indent + "\t\t\t" + retval.MarshalType + " raw_ret;"); - sw.WriteLine(indent + "\t\t\t" + "if (Environment.OSVersion.Platform == PlatformID.Win32NT ||"); - sw.WriteLine(indent + "\t\t\t" + " Environment.OSVersion.Platform == PlatformID.Win32S ||"); - sw.WriteLine(indent + "\t\t\t" + " Environment.OSVersion.Platform == PlatformID.Win32Windows ||"); - sw.WriteLine(indent + "\t\t\t" + " Environment.OSVersion.Platform == PlatformID.WinCE)"); - if (retval.IsVoid) { - sw.WriteLine(indent + "\t\t\t\t" + CName + "_utf8" + call + ";"); - sw.WriteLine(indent + "\t\t\t" + "else"); - sw.WriteLine(indent + "\t\t\t\t" + CName + call + ";"); - } else { - sw.WriteLine(indent + "\t\t\t\traw_ret = " + CName + "_utf8" + call + ";"); - sw.WriteLine(indent + "\t\t\t" + "else"); - sw.WriteLine(indent + "\t\t\t\traw_ret = " + CName + call + ";"); - sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";"); - } - } else { - sw.Write(indent + "\t\t\t"); - if (retval.IsVoid) - sw.WriteLine(CName + call + ";"); - else { - sw.WriteLine(retval.MarshalType + " raw_ret = " + CName + call + ";"); - sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";"); - } + sw.Write(indent + "\t\t\t"); + if (retval.IsVoid) + sw.WriteLine(CName + call + ";"); + else { + sw.WriteLine(retval.MarshalType + " raw_ret = " + CName + call + ";"); + sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";"); } - + if (!IsStatic && implementor != null) implementor.Finish (sw, indent + "\t\t\t"); Body.Finish (sw, indent); diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 51ceac237..e2566fc61 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -12,13 +12,10 @@ 1 1 1 - true 1 1 1 1 - true - true GtkPaperSize* true true @@ -83,10 +80,7 @@ 1 1 async - true 1 - true - true 1 1 1 @@ -140,16 +134,12 @@ ref SelectRegion 1 - true gfilename* - true gfilename* - true true gfilename* true GFile* - true gfilename* const-gfilename* const-gfilename* @@ -159,7 +149,6 @@ GetFilters GtkFileFilter* true - true GetShortcutFolders true gfilename* @@ -168,12 +157,6 @@ gchar* true true - true - true - true - true - true - true GFile* 1 GetFilters @@ -239,9 +222,7 @@ modifier call call - true out - true MapChanged accel_path accel_key @@ -389,10 +370,8 @@ 1 IsChildDetached 1 - true 1 1 - true 1 gchar* true @@ -402,8 +381,6 @@ true true LookupIcon - true - true 1 1 1 @@ -432,7 +409,6 @@ 1 1 pixbuf_animation - true file true 1 @@ -440,7 +416,6 @@ out out SetAnimation - true SetFile SetPixbuf out @@ -837,7 +812,6 @@ 1 1 1 - true 1 1 1 @@ -911,9 +885,7 @@ 1 GtkWindow* true - true 1 - true 1 1 Maximized