mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Add an example
svn path=/trunk/; revision=5747
This commit is contained in:
parent
6273407af6
commit
dd5ef3f9f8
@ -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)
|
||||
|
@ -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><NAMESPACE>_<MODULE>_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>
|
||||
|
Loading…
Reference in New Issue
Block a user