From 188203432369d0fcf2165148f56e28ea52ae716a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 20 Oct 2019 08:39:55 +0200 Subject: [PATCH] text: Fix _set_attributes docs The list is nullable. --- gtk/gtktext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtktext.c b/gtk/gtktext.c index b31cb261ed..f4b15872b1 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -6601,16 +6601,17 @@ gtk_text_get_input_hints (GtkText *self) /** * gtk_text_set_attributes: * @self: a #GtkText - * @attrs: a #PangoAttrList + * @attrs: (nullable): a #PangoAttrList or %NULL to unset * * Sets a #PangoAttrList; the attributes in the list are applied to the - * self text. + * text. */ void gtk_text_set_attributes (GtkText *self, PangoAttrList *attrs) { GtkTextPrivate *priv = gtk_text_get_instance_private (self); + g_return_if_fail (GTK_IS_TEXT (self)); if (attrs)