From fdeda388bf9b1ac284de2bb9e10b2408d9595f9b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 7 Jul 2020 12:03:44 +0100 Subject: [PATCH 1/2] Fix "not nullable" annotation --- gtk/gtkstringlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstringlist.c b/gtk/gtkstringlist.c index 2555e1f8f3..a88c719e1d 100644 --- a/gtk/gtkstringlist.c +++ b/gtk/gtkstringlist.c @@ -158,7 +158,7 @@ gtk_string_object_new_take (char *string) /** * gtk_string_object_new: - * @string: (non-nullable): The string to wrap + * @string: (not nullable): The string to wrap * * Wraps a string in an object for use with #GListModel * From 18c87faaa5b7e9fe8002365063c3e0fd2cc232e4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 7 Jul 2020 12:04:13 +0100 Subject: [PATCH 2/2] Annotate string array Fixes: #2915 --- gtk/gtkdropdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c index 70e45c2712..f89fb11391 100644 --- a/gtk/gtkdropdown.c +++ b/gtk/gtkdropdown.c @@ -927,7 +927,7 @@ gtk_drop_down_get_expression (GtkDropDown *self) /** * gtk_drop_down_set_from_strings: * @self: a #GtkDropDown - * @texts: a %NULL-terminated string array + * @texts: (array zero-terminated=1) (element-type utf8): a %NULL-terminated string array * * Populates @self with the strings in @text, * by creating a suitable model and factory.