Re: [PHP-GTK-DEV] Dirty hack for 5.3 and Gobject::register_type
[email protected] (Andrei Zmievski)
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
Should be fine, I think.. Elizabeth M Smith wrote: > I've been working with php-gtk on 5.3, compiles fine and runs fine > except for one small issue. > > In 5.3 a class in a namespace has colons in the full name - gobject's > register type does not allow colons in a name when you register the type > > Attached is a small dirty hack to fix that - it copies the class's name, > replaces colons with underscores, and then uses the underscore version > to register the type. > > This works fine - only caveat is you can't have a class in namespace > foo::bar::baz AND register a class named foo__bar__baz - I'm fairly > certain that won't be a common problem. > > Unless someone has a better idea I'll commit this version. > > Thanks, > Elizabeth >