Update GOptionContext annotations

This commit is contained in:
badcel 2023-09-07 13:23:51 +02:00
parent a366189062
commit 784b8f5cc9
No known key found for this signature in database
GPG Key ID: 70A8373EEB2233E0

View File

@ -328,7 +328,7 @@ _g_utf8_strwidth (const gchar *p)
G_DEFINE_QUARK (g-option-context-error-quark, g_option_error) G_DEFINE_QUARK (g-option-context-error-quark, g_option_error)
/** /**
* g_option_context_new: * g_option_context_new: (constructor)
* @parameter_string: (nullable): a string which is displayed in * @parameter_string: (nullable): a string which is displayed in
* the first line of `--help` output, after the usage summary * the first line of `--help` output, after the usage summary
* `programname [OPTION...]` * `programname [OPTION...]`
@ -353,7 +353,7 @@ G_DEFINE_QUARK (g-option-context-error-quark, g_option_error)
* function set with g_option_context_set_translate_func(), so * function set with g_option_context_set_translate_func(), so
* it should normally be passed untranslated. * it should normally be passed untranslated.
* *
* Returns: a newly created #GOptionContext, which must be * Returns: (transfer full): a newly created #GOptionContext, which must be
* freed with g_option_context_free() after use. * freed with g_option_context_free() after use.
* *
* Since: 2.6 * Since: 2.6
@ -381,7 +381,7 @@ g_option_context_new (const gchar *parameter_string)
/** /**
* g_option_context_free: * g_option_context_free:
* @context: a #GOptionContext * @context: (transfer full): a #GOptionContext
* *
* Frees context and all the groups which have been * Frees context and all the groups which have been
* added to it. * added to it.