Add an example

svn path=/trunk/; revision=5747
This commit is contained in:
Matthias Clasen 2007-09-11 04:04:51 +00:00
parent 6273407af6
commit dd5ef3f9f8
2 changed files with 16 additions and 2 deletions

View 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)

View 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>