[gtk+/gtk-3-22] Add a few missing (nullable) annotations



commit 8aa9fb38a30dc3587062f48de4972e3a48dd3f14
Author: Timm Bäder <mail baedert org>
Date:   Thu Feb 16 12:22:33 2017 +0100

    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 9b645c3..57d04ef 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 8f92f1d..979e0e8 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 7e0443f..66f5d52 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.
  * 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]