Main
Name
Main - Main system functions
Synopsis
Description
This section describes the functions available to test the version of the GTK+ library in use.
Preliminary: Seems to return the same as major-version.
|
Returns
|
integer representing the binary age |
<integer> |
(check-version |
major minor micro) |
Checks that the GTK+ library in use is compatable with the given version.
|
major
|
the required major version |
|
minor
|
the required minor version. |
|
micro
|
the required micro version. |
|
Returns
|
#f if the GTK+ library is compatable with the given version or a string describing the version mismatch |
Terminates the program and returns the given exit code to the caller. This function.
|
code
|
Value to return to caller. System dependent but 0 on unix indicates success |
Call this function before using any other GTK functions in your GUI applications. It will initialize everything needed to operate the toolkit and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.
Note: This function will terminate your program if it was unable to initialize the GUI for some reason. If you want your program to fall back to a textual interface you want to call gtk_init_check instead.
<integer> |
(interface-age) |
Preliminary: Seems to return the same as micro-version
|
Returns
|
integer representing the micro version number |
<integer> |
(major-version) |
The major version number of the GTK+ library (e.g. in GTK+ version 1.2.6 this is 1).
|
Returns
|
integer representing the major version number |
<integer> |
(micro-version) |
The micro version number of the GTK+ library. (e.g. in GTK+ version 1.2.6 this is 6).
|
Returns
|
integer representing the micro version number |
<integer> |
(minor-version) |
The minor version number of the GTK+ library. (e.g. in GTK+ version 1.2.6 this is 2).
|
Returns
|
integer representing the minor version number |
Last modified: Wed Mar 19 20:17:07 EST 2003