Re: Confused over demo
| From: | Andrei Zmievski | Date: | Sat, 17 Jun 2006 13:51:20 +0000 |
| Subject: | Re: Confused over demo | ||
| References: | 1 2 3 4 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3058@lists.php.net to get a copy of this message | ||
Why wouldn't they differ? GTypes are not static. They are registered at runtime. The only static ones are for fundamental types.
-Andrei
On Jun 17, 2006, at 4:00 AM, Christian Weiske wrote:
The script uses Classname::gtype to determine which class should be used. That gtype seems to change... The following script: <?php var_dump(GtkToggleButton::gtype); var_dump(GtkButton::gtype); ?> echoes: int(147412056) int(147315920) The numbers on your screenshot are totally different. What you could do is echoing the gtypes in gtkwindow.php#26 and then again in WidgetEditor.php#40 and see if they differ. If they differ, we have a problem.