summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximiliano Sandoval R <msandova@gnome.org>2022-07-15 09:25:33 +0200
committerMaximiliano Sandoval R <msandova@gnome.org>2022-12-14 21:02:15 +0100
commit0290939b4e258008d7ea6a3df188a8381a57b0a5 (patch)
treea20eb101d2db0d78b00296ff41973448a06abc0f
parent21331705630b2d0cbff145a38e4baf7ef1ccdd15 (diff)
downloadlibnotify-0290939b4e258008d7ea6a3df188a8381a57b0a5.tar.gz
gi: Correct nullable annotations
-rw-r--r--libnotify/notification.c12
-rw-r--r--libnotify/notify.c10
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.
*