Compilation Units
Tagged Types
function Check_Version
(Required_Major : Guint;
Required_Minor : Guint;
Required_Micro : Guint) return UTF8_String
Checks that the GLib library in use is compatible with the given version. Generally you would pass in the constants GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of GLib the application or module was compiled against. Compatibility is defined by two things: first the version of the running library is newer than the version Required_Major.required_minor.Required_Micro. Second the running library must be binary compatible with the version Required_Major.Required_Minor.Required_Micro (same major version.) Since: gtk+ 2.6
the required major version
the required minor version
the required micro version
null if the GLib library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by GLib and must not be modified or freed.
function Get_Home_Dir return UTF8_String
Gets the current user's home directory. As with most UNIX tools, this function will return the value of the HOME environment variable if it is set to an existing absolute path name, falling back to the passwd file in the case that it is unset. If the path given in HOME is non-absolute, does not exist, or is not a directory, the result is undefined. Before version 2.36 this function would ignore the HOME environment variable, taking the value from the passwd database instead. This was changed to increase the compatibility of GLib with other programs (and the XDG basedir specification) and to increase testability of programs based on GLib (by making it easier to run them from test frameworks). If your program has a strong requirement for either the new or the old behaviour (and if you don't wish to increase your GLib dependency to ensure that the new behaviour is in effect) then you should either directly check the HOME environment variable yourself or unset it before calling any functions in GLib.
the current user's home directory
Major_Version : constant Glib.Gint := 2;
Micro_Version : constant Glib.Gint := 0;
Minor_Version : constant Glib.Gint := 88;