Notes on PHP-GTK 2.0.0
Notes and things about this release that you probably need to know.
Topic: General PHP-GTK (View All Tutorials)
Keywords: php gtk 2.0.0
Updated: 168 Days Ago, 2008/03/05 16:21
- In This Document
- Undefined Types
- Windows Graphics Glitch
- Windows Skip Taskbar Bug
- How to compile on Unixesque OS.
No changes in these instructions, here they are.
- Windows Installation Instructions.
Just as before, they are right here.
- Errors about undefined types such as TYPE_STRING.
These are caused by the update in PHP-GTK which renamed some constants such as Gtk::TYPE_STRING, Gtk::TYPE_LONG, or Gtk::IO_IN. If you are getting this error you should change references like these to be GObject::TYPE_STRING, GObject::TYPE_LONG, and GObject::IO_IN.
- On Windows, there seems to be a graphical glitch on some widgets like GtkComboBox.

(see it when it's working right)
This is not a problem with PHP-GTK2, but a problem with GTK 2.12 itself. As a quick fix I have taken the libwimp.dll from the last release and used it with this release, and for me it has been working fine.
- My Skip Taskbar Hint is not working on Windows.
Also a bug in GTK 2.12 itself. As it was explained to me, this is less of a bug and more of a limitation of the Windows API. Apparently, as far as GTK_WINDOW_TOPLEVEL gets translated into the Windows version, Windows itself does not support removing the Toplevel window from the task list. This code sample is a case in point, and here is a small discussion on the topic from the PHP-GTK General list.
If all you are trying to do is something like prevent a config/help/about dialog from showing on the taskbar, then you should be assigning it as a transient child of the main window anyway. This also allows you to force modality and parental positioning, and should be done to tell the system how the windows are to be related.