Merge branch '1813-option-context-annotations' into 'master'

goption: Add missing (array) annotation to add_main_entries()

Closes #1813

See merge request GNOME/glib!942
This commit is contained in:
Sebastian Dröge 2019-10-22 10:05:06 +00:00
commit d515a1e85a

View File

@ -640,7 +640,7 @@ g_option_context_get_main_group (GOptionContext *context)
/**
* g_option_context_add_main_entries:
* @context: a #GOptionContext
* @entries: a %NULL-terminated array of #GOptionEntrys
* @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys
* @translation_domain: (nullable): a translation domain to use for translating
* the `--help` output for the options in @entries
* with gettext(), or %NULL
@ -2398,7 +2398,7 @@ g_option_group_unref (GOptionGroup *group)
/**
* g_option_group_add_entries:
* @group: a #GOptionGroup
* @entries: a %NULL-terminated array of #GOptionEntrys
* @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys
*
* Adds the options specified in @entries to @group.
*