From: Timm Bäder Date: Thu, 16 Feb 2017 11:22:33 +0000 (+0100) Subject: Add a few missing (nullable) annotations X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~812 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8aa9fb38a30dc3587062f48de4972e3a48dd3f14;p=gtk%2B3.0.git Add a few missing (nullable) annotations --- 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. *