checkVersion

fun checkVersion(requiredMajor: <Error class: unknown class>, requiredMinor: <Error class: unknown class>, requiredMicro: <Error class: unknown class>): String?

Checks that the GTK library in use is compatible with the given version.

Generally you would pass in the constants %GTK_MAJOR_VERSION, %GTK_MINOR_VERSION, %GTK_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of GTK the application or module was compiled against.

Compatibility is defined by two things: first the version of the running library is newer than the version

Return

null if the GTK library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by GTK and should not be modified or freed.

Parameters

requiredMajor

the required major version

requiredMinor

the required minor version

requiredMicro

the required micro version