MzGTK+ Reference Manual
<<< Previous Page Home Up Next Page >>>

Main

Name

Main - Main system functions

Synopsis

<integer> (binary-age)
<string> (check-version major minor micro)
<void> (exit code)
<void> (init)
<integer> (interface-age)
<void> (main)
<void> (main-quit)
<integer> (major-version)
<integer> (micro-version)
<integer> (minor-version)

Description

This section describes the functions available to test the version of the GTK+ library in use.

binary-age

<integer> (binary-age)

Preliminary: Seems to return the same as major-version.

Returns integer representing the binary age

check-version

<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

exit

<void> (exit code)

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

init

<void> init

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.


interface-age

<integer> (interface-age)

Preliminary: Seems to return the same as micro-version

Returns integer representing the micro version number

main

<void> (main)


main-quit

<integer> (main-quit)


major-version

<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

micro-version

<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

minor-version

<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


<<< Previous Page Home Up Next Page >>>
MzGtk  

Last modified: Wed Mar 19 20:17:07 EST 2003