How to find GTK version in PHP-GTK2?
- by aidave
This one is driving me nuts. According to GTK's site, there exists GTK_MAJOR_VERSION, GTK_MINOR_VERSION, and GTK_MICRO_VERSION constants. However, none of these work:
echo GTK_MAJOR_VERSION;
echo GtK::MAJOR_VERISON;
echo Gtk::GTK_MAJOR_VERSION;
etc
Also, Gtk::check_version(2,12,0) always fails even though I have a higher version.
I'd like to simply get the actual version number and not rely on check_version, which seems unreliable.
How can I do this?
I need to do it within PHP, platform independent.