Read the name attribute for constructors converted to static factory methods

svn path=/trunk/gtk-sharp/; revision=132561
This commit is contained in:
Stephane Delcroix 2009-04-24 08:08:17 +00:00
parent 643a910cd6
commit 89702a7e51

View File

@ -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;