From fe852721123fb7dc5749c690613ca6e209363e2f Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 19 Feb 2010 14:53:17 -0200 Subject: [annotations] Add allow-none This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474 --- gtk/gtkaccelgroup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gtkaccelgroup.c') diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c index 4d760b5880..d5d9b53a96 100644 --- a/gtk/gtkaccelgroup.c +++ b/gtk/gtkaccelgroup.c @@ -691,7 +691,7 @@ gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group, /** * gtk_accel_group_disconnect: * @accel_group: the accelerator group to remove an accelerator from - * @closure: the closure to remove from this accelerator group, or %NULL + * @closure: (allow-none): the closure to remove from this accelerator group, or %NULL * to remove all closures * @returns: %TRUE if the closure was found and got disconnected * @@ -804,8 +804,8 @@ _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, * @accel_group: the accelerator group to query * @accel_key: key value of the accelerator * @accel_mods: modifier combination of the accelerator - * @n_entries: location to return the number of entries found, or %NULL - * @returns: an array of @n_entries #GtkAccelGroupEntry elements, or %NULL. The array is owned by GTK+ and must not be freed. + * @n_entries: (allow-none): location to return the number of entries found, or %NULL + * @returns: (allow-none): an array of @n_entries #GtkAccelGroupEntry elements, or %NULL. The array is owned by GTK+ and must not be freed. * * Queries an accelerator group for all entries matching @accel_key and * @accel_mods. @@ -832,7 +832,7 @@ gtk_accel_group_query (GtkAccelGroup *accel_group, /** * gtk_accel_group_from_accel_closure: * @closure: a #GClosure - * @returns: the #GtkAccelGroup to which @closure is connected, or %NULL. + * @returns: (allow-none): the #GtkAccelGroup to which @closure is connected, or %NULL. * * Finds the #GtkAccelGroup to which @closure is connected; * see gtk_accel_group_connect(). -- cgit v1.2.1