note 594 added to tutorials.hellow.php
| From: | dmitry at rsl dot ru | Date: | Tue, 18 Oct 2005 10:31:22 +0000 |
| Subject: | note 594 added to tutorials.hellow.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2848@lists.php.net to get a copy of this message | ||
The example above is broken and runs incorrect on my winxp. The problem is that name of PHP-GTK
extension is *php-gtk*, not *gtk*, so you need to check !extension_loaded('php-gtk') in
your scripts (demo scripts are checking for gtk. This, since php-gtk extension on my system is
loaded via php.ini's extension=php_gtk.dll, causes php-gtk to be loaded twice and to work in
very strange way(s): button's titles are not shown, list's data are not shown also,
combobuttons cannot be created with error messages:
(combobutton.php:2028): Gtk-CRITICAL **: file gtkmisc.c: line 166 (gtk_misc_set_alignment):
assertion `misc != NULL' failed
(combobutton.php:2028): Gtk-CRITICAL **: file gtkcontainer.c: line 713 (gtk_container_add):
assertion `widget != NULL' failed
and so on).
So, be careful ;)
http://gtk.php.net:80/manual/en/tutorials.hellow.php