Chapter 11. Functions and structures

Table of Contents
Messages and errors
Structures

Unlike the reference chapter this one is manually written and can be outdated but I'll do my best to avoid this. I'll also try to provide examples and purpose informations for most entries.

Messages and errors

Gaby provides a simple way to ensure that every message (being an informal message, an emergency error or a critical error) get a correct and coherent handling.

This is done using two global variable :

FIXME: this table is broken.

Table 11-1.

NO_ERRORNULLNothing
CUSTOM_MESSAGEstring to showA string in an "Information Box"
CUSTOM_WARNINGstring to showA string in a "Warning Box"
CUSTOM_ERRORstring to showA string in an "Error Box"
ONLY_IN_GNOMENULLA message to warn about a feature only available if it was compiled with Gnome support
FILE_READ_ERRORname of the fileA message telling that an error occured when reading a file
FILE_WRITE_ERRORname of the fileA message telling that an error occured when writing a file

The message is then issued when you call gaby_perror_in_a_box().