projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4730c
)
Button: Annotate set_image() argument as nullable
author
Daniel Boles
<dboles@src.gnome.org>
Sun, 24 Sep 2017 21:20:34 +0000
(22:20 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index b39d55b408897add0a837d13be95fc7f8b33e2c8..90e1a5d34a9a6cbe230fea786a4d6833fbfa22c3 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-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