RegisterGType can handle deeper namespace levels now

svn path=/trunk/gtk-sharp/; revision=12420
This commit is contained in:
petr 2003-03-11 08:33:24 +00:00
parent cf022facd6
commit 9d2efb1474

View file

@ -150,7 +150,7 @@ namespace GLib {
return null; return null;
} }
uint parent_gtype = (uint) pi.GetValue (null, null); uint parent_gtype = (uint) pi.GetValue (null, null);
string name = t.Namespace + t.Name; string name = t.Namespace.Replace(".", "_") + t.Name;
GtkSharp.ObjectManager.RegisterType (name, t.Namespace + t.Name, t.Assembly.GetName().Name); GtkSharp.ObjectManager.RegisterType (name, t.Namespace + t.Name, t.Assembly.GetName().Name);
return new GLib.Type (gtksharp_register_type (name, parent_gtype)); return new GLib.Type (gtksharp_register_type (name, parent_gtype));
} }