From 0290939b4e258008d7ea6a3df188a8381a57b0a5 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Fri, 15 Jul 2022 09:25:33 +0200 Subject: gi: Correct nullable annotations --- libnotify/notification.c | 12 ++++++------ libnotify/notify.c | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libnotify/notification.c b/libnotify/notification.c index d66d663..a5d7b18 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -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. * diff --git a/libnotify/notify.c b/libnotify/notify.c index ee98ba2..2819e0b 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -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. * -- cgit v1.2.1