text: Fix _set_attributes docs
authorTimm Bäder <mail@baedert.org>
Sun, 20 Oct 2019 06:39:55 +0000 (08:39 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 22 Oct 2019 07:37:08 +0000 (09:37 +0200)
The list is nullable.

gtk/gtktext.c

index b31cb261ed337501e889c8fff3cfb676c64a57c3..f4b15872b1a2c987d5075b05502b309bc0eb7dfb 100644 (file)
@@ -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)