+2006-03-15 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/option.sgml: Hint that @error should
+ be set in error cases. (#334646, Christian Persch)
+
2006-03-09 Matthias Clasen <mclasen@redhat.com>
* glib/templ/timers.sgml: Mention that the second
@error: A return location for errors. The error code %G_OPTION_ERROR_FAILED
is intended to be used for errors in #GOptionArgFunc callbacks.
@Returns: %TRUE if the option was successfully parsed, %FALSE if an error
- occurred
+ occurred, in which case @error should be set with g_set_error()
<!-- ##### STRUCT GOptionContext ##### -->
<!-- ##### USER_FUNCTION GOptionParseFunc ##### -->
<para>
-The type of function that can be called before and after parsing.
+The type of function that can be called before and after parsing.
</para>
@context: The active #GOptionContext
was created with g_option_group_new()
@error: A return location for error details
@Returns: %TRUE if the function completed successfully, %FALSE if an error
- occurred
+ occurred, in which case @error should be set with g_set_error()
<!-- ##### FUNCTION g_option_group_set_parse_hooks ##### -->
<!-- ##### USER_FUNCTION GOptionErrorFunc ##### -->
<para>
-The type of function to be used as callback when a parse error
-occurs.
+The type of function to be used as callback when a parse error occurs.
</para>
@context: The active #GOptionContext