Button: Annotate set_image() argument as nullable
authorDaniel Boles <dboles@src.gnome.org>
Sun, 24 Sep 2017 21:20:34 +0000 (22:20 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sun, 24 Sep 2017 21:20:34 +0000 (22:20 +0100)
Passing NULL is valid and results in the image child being unset/removed

gtk/gtkbutton.c

index b39d55b408897add0a837d13be95fc7f8b33e2c8..90e1a5d34a9a6cbe230fea786a4d6833fbfa22c3 100644 (file)
@@ -2543,7 +2543,7 @@ gtk_button_grab_notify (GtkWidget *widget,
 /**
  * gtk_button_set_image:
  * @button: a #GtkButton
- * @image: a widget to set as the image for the button
+ * @image: (nullable): a widget to set as the image for the button, or %NULL to unset
  *
  * Set the image of @button to the given widget. The image will be
  * displayed if the label text is %NULL or if