GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> extern const guint gtk_major_version; extern const guint gtk_minor_version; extern const guint gtk_micro_version; extern const guint gtk_binary_age; extern const guint gtk_interface_age; gchar* gtk_check_version (guint required_major, guint required_minor, guint required_micro); |
This section describes the variables and functions available to test the version of the GTK+ library in use. FIXME: probably merge with other general stuff.
extern const guint gtk_major_version; |
The major version number of the GTK+ library. (e.g. in GTK+ version 1.2.5 this is 1.)
extern const guint gtk_minor_version; |
The minor version number of the GTK+ library. (e.g. in GTK+ version 1.2.5 this is 2.)
extern const guint gtk_micro_version; |
The micro version number of the GTK+ library. (e.g. in GTK+ version 1.2.5 this is 5.)
gchar* gtk_check_version (guint required_major, guint required_minor, guint required_micro); |
Checks that the GTK+ library in use is compatable with the given version.
required_major : | the required major version. |
required_minor : | the required major version. |
required_micro : | the required major version. |
Returns : | NULL if the GTK+ library is compatable with the given version, or a string describing the version mismatch. |