1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
1999-09-22 21:30:57 +00:00
|
|
|
Version Information
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
1999-09-22 21:30:57 +00:00
|
|
|
variables and functions to check the GTK+ version.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
GTK+ provides version information, primarily useful in configure checks
|
|
|
|
for builds that have a configure script. Applications will not
|
|
|
|
typically use the features described here.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### VARIABLE gtk_major_version ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
The major version number of the GTK+ library. (e.g. in GTK+ version
|
|
|
|
1.2.5 this is 1.)
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This variable is in the library, so represents the
|
|
|
|
GTK+ library you have linked against. Contrast with the
|
|
|
|
#GTK_MAJOR_VERSION macro, which represents the major version of the
|
|
|
|
GTK+ headers you have included.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### VARIABLE gtk_minor_version ##### -->
|
|
|
|
<para>
|
1999-09-22 21:30:57 +00:00
|
|
|
The minor version number of the GTK+ library.
|
|
|
|
(e.g. in GTK+ version 1.2.5 this is 2.)
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
<para>
|
|
|
|
This variable is in the library, so represents the
|
|
|
|
GTK+ library you have linked against. Contrast with the
|
|
|
|
#GTK_MINOR_VERSION macro, which represents the minor version of the
|
|
|
|
GTK+ headers you have included.
|
|
|
|
</para>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### VARIABLE gtk_micro_version ##### -->
|
|
|
|
<para>
|
1999-09-22 21:30:57 +00:00
|
|
|
The micro version number of the GTK+ library.
|
|
|
|
(e.g. in GTK+ version 1.2.5 this is 5.)
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
This variable is in the library, so represents the GTK+ library you
|
|
|
|
have linked against. Contrast with the #GTK_MICRO_VERSION macro, which
|
|
|
|
represents the micro version of the GTK+ headers you have included.
|
|
|
|
</para>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
<!-- ##### VARIABLE gtk_binary_age ##### -->
|
|
|
|
<para>
|
|
|
|
This is the binary age passed to libtool. If "libtool" means nothing
|
|
|
|
to you, don't worry about it. ;-)
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### VARIABLE gtk_interface_age ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
This is the interface age passed to libtool. If "libtool" means nothing
|
|
|
|
to you, don't worry about it. ;-)
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_check_version ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Checks that the GTK+ library in use is equal to the given
|
|
|
|
version. Primarily useful to compare the header file version
|
|
|
|
(from #GTK_MAJOR_VERSION, #GTK_MINOR_VERSION, #GTK_MICRO_VERSION)
|
|
|
|
the the runtime library version. This should only be done
|
|
|
|
in the build for your application, to check that the user's libraries
|
|
|
|
and header files are the same. Applications should not do this
|
|
|
|
when deployed, because it's OK for applications to use a different
|
|
|
|
micro version of GTK+ than the one they were compiled against.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
@required_major: the required major version.
|
|
|
|
@required_minor: the required major version.
|
|
|
|
@required_micro: the required major version.
|
2001-09-08 04:39:53 +00:00
|
|
|
@Returns: NULL if the GTK+ library is compatible with the given version, or
|
1999-09-22 21:30:57 +00:00
|
|
|
a string describing the version mismatch.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### MACRO GTK_MAJOR_VERSION ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Like #gtk_major_version, but from the headers used at
|
|
|
|
application compile time, rather than from the library linked against
|
|
|
|
at application run time.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_MINOR_VERSION ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Like #gtk_minor_version, but from the headers used at
|
|
|
|
application compile time, rather than from the library linked against
|
|
|
|
at application run time.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_MICRO_VERSION ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Like #gtk_micro_version, but from the headers used at
|
|
|
|
application compile time, rather than from the library linked against
|
|
|
|
at application run time.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_BINARY_AGE ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Like #gtk_binary_age, but from the headers used at
|
|
|
|
application compile time, rather than from the library linked against
|
|
|
|
at application run time.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_INTERFACE_AGE ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Like #gtk_interface_age, but from the headers used at
|
|
|
|
application compile time, rather than from the library linked against
|
|
|
|
at application run time.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_CHECK_VERSION ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
Returns %TRUE if the version of the GTK+ header files is the same
|
|
|
|
as the passed-in version.
|
2000-09-07 18:17:06 +00:00
|
|
|
</para>
|
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
@major: major version (first number in 1.2.5)
|
|
|
|
@minor: minor version (second number in 1.2.5)
|
|
|
|
@micro: micro version (third number in 1.2.5)
|
2000-09-07 18:17:06 +00:00
|
|
|
|
|
|
|
|