LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Andrei Zmievski Date: Tue Aug 5 15:29:52 2008 Subject: Re: Dirty hack for 5.3 and Gobject::register_type
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 >
| Navigate in group php.gtk.dev at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |