2003-07-22 Mike Kestner <mkestner@speakeasy.net>

* generator/Method.cs (GenerateBody): kill the "cast_type"
	overload of this, since cast_type wasn't even used.
	* generator/Property.cs : call simpler GenerateBody sig

svn path=/trunk/gtk-sharp/; revision=16550
This commit is contained in:
Mike Kestner 2003-07-22 22:56:10 +00:00
parent 05172d9599
commit 31001501ed
4 changed files with 9 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2003-07-22 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs (GenerateBody): kill the "cast_type"
overload of this, since cast_type wasn't even used.
* generator/Property.cs : call simpler GenerateBody sig
2003-07-22 Duncan Mak <duncan@ximian.com>
* gtk/FileSelection.custom (FSButton): Mark the constructor as

View file

@ -377,11 +377,6 @@ namespace GtkSharp.Generation {
}
public void GenerateBody (StreamWriter sw, string indent)
{
GenerateBody(sw, indent, "");
}
public void GenerateBody (StreamWriter sw, string indent, string cast_type)
{
sw.WriteLine(" {");
if (parms != null)

View file

@ -115,7 +115,7 @@ namespace GtkSharp.Generation {
sw.WriteLine("\t\tpublic " + modifiers + cs_type + " " + name + " {");
if (has_getter) {
sw.Write("\t\t\tget ");
getter.GenerateBody(sw, "\t", c_type);
getter.GenerateBody(sw, "\t");
sw.WriteLine();
} else if (elem.HasAttribute("readable")) {
sw.WriteLine("\t\t\tget {");
@ -141,7 +141,7 @@ namespace GtkSharp.Generation {
if (has_setter) {
sw.Write("\t\t\tset ");
setter.GenerateBody(sw, "\t", c_type);
setter.GenerateBody(sw, "\t");
sw.WriteLine();
} else if (elem.HasAttribute("writeable") && !elem.HasAttribute("construct-only")) {
sw.WriteLine("\t\t\tset {");

View file

@ -13,7 +13,7 @@ namespace GtkSharp.Generation {
public class SignalHandler {
public static String GetName(XmlElement sig, string ns, bool generate)
public static string GetName(XmlElement sig, string ns, bool generate)
{
XmlElement ret_elem = sig["return-type"];
if (ret_elem == null) {