How to find GTK version in PHP-GTK2?
Posted
by aidave
on Stack Overflow
See other posts from Stack Overflow
or by aidave
Published on 2009-11-20T20:14:51Z
Indexed on
2010/05/31
7:02 UTC
Read the original article
Hit count: 255
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.
© Stack Overflow or respective owner