Add an example
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 11 Sep 2007 04:04:51 +0000 (04:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 11 Sep 2007 04:04:51 +0000 (04:04 +0000)
svn path=/trunk/; revision=5747

docs/reference/ChangeLog
docs/reference/glib/tmpl/error_reporting.sgml

index dc8653d..3cdd9cf 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-11  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/tmpl/error_reporting.sgml: Add an example.  (#474229,
+       Rob Bradford)
+
 2007-09-09  Behdad Esfahbod  <behdad@gnome.org>
 
        * glib/tmpl/warnings.sgml: Improve G_BREAKPOINT docs. (#474899)
index 4547793..ed748c7 100644 (file)
@@ -241,9 +241,18 @@ Error domains and codes are conventionally named as follows:
 <itemizedlist>
 <listitem>
 <para>
-The error domain is called
+The error domain is called 
 <literal>&lt;NAMESPACE&gt;_&lt;MODULE&gt;_ERROR</literal>, for example
-%G_EXEC_ERROR or %G_THREAD_ERROR.
+%G_SPAWN_ERROR or %G_THREAD_ERROR:
+<informalexample><programlisting>
+#define G_SPAWN_ERROR g_spawn_error_quark (<!-- -->)
+
+GQuark
+g_spawn_error_quark (void)
+{
+  return g_quark_from_static_string ("g-spawn-error-quark");
+}
+</programlisting></informalexample>
 </para>
 </listitem>
 <listitem>