From 31e2c02e94fc009518eed4454764ed73da4373a2 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Wed, 9 Oct 2013 20:37:18 +0200 Subject: [PATCH] generator: public accessor in method overloads --- generator/Method.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/Method.cs b/generator/Method.cs index 76078d65b..784951074 100644 --- a/generator/Method.cs +++ b/generator/Method.cs @@ -215,7 +215,7 @@ namespace GtkSharp.Generation { public void GenerateOverloads (StreamWriter sw) { sw.WriteLine (); - sw.WriteLine ("\t\t" + retval.CSType + " " + Name + "(" + (Signature != null ? Signature.WithoutOptional () : "") + ") {"); + sw.WriteLine ("\t\tpublic " + retval.CSType + " " + Name + "(" + (Signature != null ? Signature.WithoutOptional () : "") + ") {"); sw.WriteLine ("\t\t\t{0}{1} ({2});", !retval.IsVoid ? "return " : String.Empty, Name, Signature.CallWithoutOptionals ()); sw.WriteLine ("\t\t}"); }