[gtk/wip/baedert/for-master] text: Fix _set_attributes docs



commit 306c2da8a806803932416bd9c60d6740dd0d07dd
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 20 08:39:55 2019 +0200

    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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]