summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-20 20:45:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-20 20:45:06 -0400
commit4a0d3d7acc35ce7c1f2fcb29facf58b9720eb6a5 (patch)
treee4157e70d282f7e8edac07406c67bb051334d7c7 /gtk/gtktooltip.c
parent7fe0610b681c96823c45b88ca2c9657f1320bef8 (diff)
downloadgtk+-4a0d3d7acc35ce7c1f2fcb29facf58b9720eb6a5.tar.gz
docs: Reduce redundancy
Remove a boatload of "or %NULL" from nullable parameters and return values. gi-docgen generates suitable text from the annotation that we don't need to duplicate. This adds a few missing nullable annotations too.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 1a364f1df6..62fd6b6c13 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -222,7 +222,7 @@ gtk_tooltip_set_markup (GtkTooltip *tooltip,
/**
* gtk_tooltip_set_text:
* @tooltip: a `GtkTooltip`
- * @text: (nullable): a text string or %NULL
+ * @text: (nullable): a text string
*
* Sets the text of the tooltip to be @text.
*
@@ -241,7 +241,7 @@ gtk_tooltip_set_text (GtkTooltip *tooltip,
/**
* gtk_tooltip_set_icon:
* @tooltip: a #GtkTooltip
- * @paintable: (nullable): a #GdkPaintable, or %NULL
+ * @paintable: (nullable): a #GdkPaintable
*
* Sets the icon of the tooltip (which is in front of the text) to be
* @paintable. If @paintable is %NULL, the image will be hidden.
@@ -259,7 +259,7 @@ gtk_tooltip_set_icon (GtkTooltip *tooltip,
/**
* gtk_tooltip_set_icon_from_icon_name:
* @tooltip: a #GtkTooltip
- * @icon_name: (nullable): an icon name, or %NULL
+ * @icon_name: (nullable): an icon name
*
* Sets the icon of the tooltip (which is in front of the text) to be
* the icon indicated by @icon_name with the size indicated
@@ -278,7 +278,7 @@ gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip,
/**
* gtk_tooltip_set_icon_from_gicon:
* @tooltip: a #GtkTooltip
- * @gicon: (nullable): a #GIcon representing the icon, or %NULL
+ * @gicon: (nullable): a #GIcon representing the icon
*
* Sets the icon of the tooltip (which is in front of the text)
* to be the icon indicated by @gicon with the size indicated