gi: Correct nullable annotations

This commit is contained in:
Maximiliano Sandoval R 2022-07-15 09:25:33 +02:00
parent 67a43ee487
commit 260f497fa0
No known key found for this signature in database
GPG Key ID: D64A8D747F6FE706
2 changed files with 11 additions and 11 deletions

View File

@ -473,9 +473,9 @@ maybe_warn_portal_unsupported_feature (const char *feature_name)
/**
* notify_notification_new:
* @summary: The required summary text.
* @body: (allow-none): The optional body text.
* @icon: (allow-none): The optional icon theme icon name or filename.
* @summary: (not nullable): The required summary text.
* @body: (nullable): The optional body text.
* @icon: (nullable): The optional icon theme icon name or filename.
*
* Creates a new #NotifyNotification.
*
@ -633,8 +633,8 @@ notify_notification_update_internal (NotifyNotification *notification,
* notify_notification_update:
* @notification: The notification to update.
* @summary: The new required summary text.
* @body: (allow-none): The optional body text.
* @icon: (allow-none): The optional icon theme icon name or filename.
* @body: (nullable): The optional body text.
* @icon: (nullable): The optional icon theme icon name or filename.
*
* Updates the notification text and icon.
*
@ -1428,7 +1428,7 @@ maybe_parse_snap_hint_value (NotifyNotification *notification,
* notify_notification_set_hint:
* @notification: a #NotifyNotification
* @key: the hint key
* @value: (allow-none): the hint value, or %NULL to unset the hint
* @value: (nullable): the hint value
*
* Sets a hint for @key with value @value.
*

View File

@ -537,7 +537,7 @@ _get_portal_proxy (GError **error)
/*
* _notify_get_proxy:
* @error: (allow-none): a location to store a #GError, or %NULL
* @error: (nullable): a location to store a #GError, or %NULL
*
* Synchronously creates the #GDBusProxy for the notification service,
* and caches the result.
@ -645,10 +645,10 @@ notify_get_server_caps (void)
/**
* notify_get_server_info:
* @ret_name: (out) (allow-none) (transfer full): a location to store the server name, or %NULL
* @ret_vendor: (out) (allow-none) (transfer full): a location to store the server vendor, or %NULL
* @ret_version: (out) (allow-none) (transfer full): a location to store the server version, or %NULL
* @ret_spec_version: (out) (allow-none) (transfer full): a location to store the version the service is compliant with, or %NULL
* @ret_name: (out) (optional) (transfer full): a location to store the server name, or %NULL
* @ret_vendor: (out) (optional) (transfer full): a location to store the server vendor, or %NULL
* @ret_version: (out) (optional) (transfer full): a location to store the server version, or %NULL
* @ret_spec_version: (out) (optional) (transfer full): a location to store the version the service is compliant with, or %NULL
*
* Queries the server for information.
*