summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin@elementary.io>2021-11-11 16:39:12 +0100
committerCorentin Noël <corentin@elementary.io>2021-11-11 16:39:12 +0100
commitdfc0d0b8f8a06851516e517ba910de1a54d43d5c (patch)
treee63292d4d466e1792c87d85d3557a8840a2a22dd
parent21e0927fe2397155b849f12aaf6d488faeb688e4 (diff)
downloadlibical-git-dfc0d0b8f8a06851516e517ba910de1a54d43d5c.tar.gz
libical-glib: Get rid of all the allow-none annotations
allow-none has been deprecated and replaced by either nullable or optional.
-rw-r--r--src/libical-glib/i-cal-object.c.in6
-rw-r--r--src/libical-glib/tools/generator.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/libical-glib/i-cal-object.c.in b/src/libical-glib/i-cal-object.c.in
index c822509c..dbdedc58 100644
--- a/src/libical-glib/i-cal-object.c.in
+++ b/src/libical-glib/i-cal-object.c.in
@@ -324,7 +324,7 @@ static void i_cal_object_init(ICalObject *iobject)
* @native: a native libical structure
* @native_destroy_func: a function to be called on @native when it should be freed
* @is_global_memory: whether @native is a global shared memory structure
- * @owner: (allow-none): an owner of @native
+ * @owner: (nullable): an owner of @native
*
* Creates an #ICalObject descendant of type @type and initialize private members
* of it. The descendants should call this function in their _new() function, or use
@@ -586,8 +586,8 @@ void i_cal_object_set_owner(ICalObject *iobject, GObject *owner)
* if not NULL, is referenced for thread safety. Unref it with g_object_unref
* when done with it.
*
- * Returns: (transfer full) (allow-none): Current owner of the libical
- * native structure. returns NULL, when there is no owner.
+ * Returns: (transfer full) (nullable): Current owner of the libical
+ * native structure. returns %NULL, when there is no owner.
*
* Since: 1.0
**/
diff --git a/src/libical-glib/tools/generator.c b/src/libical-glib/tools/generator.c
index 609c9297..c3ef96b9 100644
--- a/src/libical-glib/tools/generator.c
+++ b/src/libical-glib/tools/generator.c
@@ -1580,8 +1580,7 @@ static gboolean annotation_contains_nullable(GList *annotations) /* gchar * */
GList *link;
for (link = annotations; link; link = g_list_next(link)) {
- if (g_strcmp0(link->data, "allow-none") == 0 ||
- g_strcmp0(link->data, "nullable") == 0) {
+ if (g_strcmp0(link->data, "nullable") == 0) {
break;
}
}