O'Reilly logo

Foundations of GTK+ Development by Andrew Krause

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX EGError Types

GLib provides a standard method for error propagation called GError. In this appendix, you will find a complete list of the GError domains, as of GTK+ 2.10, along with the error types that correspond to each domain.

The GError structure provides three elements: the error domain, a message string, and an error code.

struct GError {   GQuark domain;   gchar *message;   gint code; };

Each error domain represents a group of similar error types. Example error domains include G_BOOKMARK_FILE_ERROR, GDK_PIXBUF_ERROR, and G_FILE_ERROR. They are always named as <NAMESPACE>_<MODULE>_ERROR, where the namespace is the library containing the function, and the module is the widget or object type.

The message is a human-readable string ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required