Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add an example
svn path=/trunk/; revision=5747
  • Loading branch information
Matthias Clasen committed Sep 11, 2007
1 parent 6273407 commit dd5ef3f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/reference/ChangeLog
@@ -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)
Expand Down
13 changes: 11 additions & 2 deletions docs/reference/glib/tmpl/error_reporting.sgml
Expand Up @@ -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>
Expand Down

0 comments on commit dd5ef3f

Please sign in to comment.