Merge branch 'zero-terminated-annotations' into 'main'

gio: add some nullable / zero-terminated annotations

See merge request GNOME/glib!4789
This commit is contained in:
Philip Withnall
2025-10-16 20:10:49 +00:00
3 changed files with 4 additions and 4 deletions

View File

@@ -689,7 +689,7 @@ g_app_info_remove_supports_type (GAppInfo *appinfo,
* [method@Gio.AppInfo.add_supports_type], but only those exported directly by * [method@Gio.AppInfo.add_supports_type], but only those exported directly by
* the application. * the application.
* *
* Returns: (transfer none) (array zero-terminated=1) (element-type utf8): * Returns: (transfer none) (nullable) (array zero-terminated=1) (element-type utf8):
* a list of content types. * a list of content types.
* *
* Since: 2.34 * Since: 2.34

View File

@@ -630,7 +630,7 @@ g_application_command_line_get_cwd (GApplicationCommandLine *cmdline)
* See g_application_command_line_getenv() if you are only interested * See g_application_command_line_getenv() if you are only interested
* in the value of a single environment variable. * in the value of a single environment variable.
* *
* Returns: (array zero-terminated=1) (element-type filename) (transfer none): * Returns: (nullable) (array zero-terminated=1) (element-type filename) (transfer none):
* the environment strings, or %NULL if they were not sent * the environment strings, or %NULL if they were not sent
* *
* Since: 2.28 * Since: 2.28

View File

@@ -2388,7 +2388,7 @@ g_desktop_app_info_get_categories (GDesktopAppInfo *info)
* *
* Gets the keywords from the desktop file. * Gets the keywords from the desktop file.
* *
* Returns: (transfer none): The value of the * Returns: (nullable) (array zero-terminated=1) (transfer none): The value of the
* [`Keywords` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-keywords) * [`Keywords` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-keywords)
* *
* Since: 2.32 * Since: 2.32
@@ -5078,7 +5078,7 @@ g_desktop_app_info_get_boolean (GDesktopAppInfo *info,
* *
* The @key is looked up in the `Desktop Entry` group. * The @key is looked up in the `Desktop Entry` group.
* *
* Returns: (array zero-terminated=1 length=length) (element-type utf8) (transfer full): * Returns: (nullable) (array zero-terminated=1 length=length) (element-type utf8) (transfer full):
* a `NULL`-terminated string array or `NULL` if the specified * a `NULL`-terminated string array or `NULL` if the specified
* key cannot be found. The array should be freed with [func@GLib.strfreev]. * key cannot be found. The array should be freed with [func@GLib.strfreev].
* *