From dd5ef3f9f8b4609cb7e2fa18a058b69185e2dc85 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 11 Sep 2007 04:04:51 +0000 Subject: [PATCH] Add an example svn path=/trunk/; revision=5747 --- docs/reference/ChangeLog | 5 +++++ docs/reference/glib/tmpl/error_reporting.sgml | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index dc8653df9..3cdd9cf7c 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2007-09-11 Matthias Clasen + + * glib/tmpl/error_reporting.sgml: Add an example. (#474229, + Rob Bradford) + 2007-09-09 Behdad Esfahbod * glib/tmpl/warnings.sgml: Improve G_BREAKPOINT docs. (#474899) diff --git a/docs/reference/glib/tmpl/error_reporting.sgml b/docs/reference/glib/tmpl/error_reporting.sgml index 454779364..ed748c751 100644 --- a/docs/reference/glib/tmpl/error_reporting.sgml +++ b/docs/reference/glib/tmpl/error_reporting.sgml @@ -241,9 +241,18 @@ Error domains and codes are conventionally named as follows: -The error domain is called +The error domain is called <NAMESPACE>_<MODULE>_ERROR, for example -%G_EXEC_ERROR or %G_THREAD_ERROR. +%G_SPAWN_ERROR or %G_THREAD_ERROR: + +#define G_SPAWN_ERROR g_spawn_error_quark () + +GQuark +g_spawn_error_quark (void) +{ + return g_quark_from_static_string ("g-spawn-error-quark"); +} +