Re: Dirty hack for 5.3 and Gobject::register_type
| From: | Andrei Zmievski | Date: | Tue, 05 Aug 2008 21:29:52 +0000 |
| Subject: | Re: Dirty hack for 5.3 and Gobject::register_type | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4247@lists.php.net to get a copy of this message | ||
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