RegisterGType can handle deeper namespace levels now
svn path=/trunk/gtk-sharp/; revision=12420
This commit is contained in:
parent
cf022facd6
commit
9d2efb1474
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue