Version Information

Name

Version Information -- variables and functions to check the GTK+ version.

Synopsis


#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);

Description

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.

Details

gtk_major_version

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.)


gtk_minor_version

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.)


gtk_micro_version

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.)


gtk_binary_age

extern const guint gtk_binary_age;


gtk_interface_age

extern const guint gtk_interface_age;


gtk_check_version ()

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.