From 89702a7e5143e4c87edbdf25606434d1ef436a67 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Fri, 24 Apr 2009 08:08:17 +0000 Subject: [PATCH] Read the name attribute for constructors converted to static factory methods svn path=/trunk/gtk-sharp/; revision=132561 --- generator/Ctor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/Ctor.cs b/generator/Ctor.cs index 2beb66dd3..776b084c3 100644 --- a/generator/Ctor.cs +++ b/generator/Ctor.cs @@ -51,6 +51,9 @@ namespace GtkSharp.Generation { get { if (!IsStatic) return String.Empty; + + if (Name != null && Name != String.Empty) + return Name; string[] toks = CName.Substring(CName.IndexOf("new")).Split ('_'); string result = String.Empty;