mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 12:55:33 +00:00
RegisterGType can handle deeper namespace levels now
svn path=/trunk/gtk-sharp/; revision=12420
This commit is contained in:
parent
cf022facd6
commit
9d2efb1474
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue