From 8aa9fb38a30dc3587062f48de4972e3a48dd3f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 16 Feb 2017 12:22:33 +0100 Subject: [PATCH] Add a few missing (nullable) annotations --- gtk/gtkbutton.c | 2 +- gtk/gtkgesture.c | 4 ++-- gtk/gtkimage.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 9b645c3694..57d04ef036 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1417,7 +1417,7 @@ gtk_button_new_with_label (const gchar *label) /** * gtk_button_new_from_icon_name: - * @icon_name: an icon name + * @icon_name: (nullable): an icon name or %NULL * @size: (type int): an icon size (#GtkIconSize) * * Creates a new button containing an icon from the current icon theme. diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c index 8f92f1d69c..979e0e8ba9 100644 --- a/gtk/gtkgesture.c +++ b/gtk/gtkgesture.c @@ -1523,12 +1523,12 @@ _gtk_gesture_check (GtkGesture *gesture) /** * gtk_gesture_handles_sequence: * @gesture: a #GtkGesture - * @sequence: a #GdkEventSequence + * @sequence: (nullable): a #GdkEventSequence or %NULL * * Returns %TRUE if @gesture is currently handling events corresponding to * @sequence. * - * Returns: %TRUE if @gesture is handling @sequence + * Returns: %TRUE if @gesture is handling @sequence, %FALSE otherwise * * Since: 3.14 **/ diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 7e0443f11a..66f5d5289b 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1284,7 +1284,7 @@ gtk_image_set_from_gicon (GtkImage *image, /** * gtk_image_set_from_surface: * @image: a #GtkImage - * @surface: a cairo_surface_t + * @surface: (nullable): a cairo_surface_t or %NULL * * See gtk_image_new_from_surface() for details. *