summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2014-05-30 19:21:11 -0700
committerEvan Nemerson <evan@nemerson.com>2014-10-16 13:09:34 -0700
commitfa6ded9b0d065634481d8ae4126fdea0b88e3558 (patch)
tree151efb6762bf467ada2ac104770fdefd293b7248 /pango/pango-attributes.c
parentadb5a4e86b09b0935ec1dd71bf05ac41807c84a2 (diff)
downloadpango-fa6ded9b0d065634481d8ae4126fdea0b88e3558.tar.gz
Add many missing nullability annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=731022
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 9059b1de..09dcbbde 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -110,8 +110,8 @@ pango_attr_type_register (const gchar *name)
* The returned value is an interned string (see g_intern_string() for what
* that means) that should not be modified or freed.
*
- * Return value: the type ID name (which may be %NULL), or %NULL if @type is
- * a built-in Pango attribute type or invalid.
+ * Return value: (nullable): the type ID name (which may be %NULL), or
+ * %NULL if @type is a built-in Pango attribute type or invalid.
*
* Since: 1.22
**/
@@ -1132,7 +1132,7 @@ pango_attr_list_new (void)
/**
* pango_attr_list_ref:
- * @list: a #PangoAttrList, may be %NULL
+ * @list: (nullable): a #PangoAttrList, may be %NULL
*
* Increase the reference count of the given attribute list by one.
*
@@ -1153,7 +1153,7 @@ pango_attr_list_ref (PangoAttrList *list)
/**
* pango_attr_list_unref:
- * @list: a #PangoAttrList, may be %NULL
+ * @list: (nullable): a #PangoAttrList, may be %NULL
*
* Decrease the reference count of the given attribute list by one.
* If the result is zero, free the attribute list and the attributes
@@ -1188,11 +1188,11 @@ pango_attr_list_unref (PangoAttrList *list)
/**
* pango_attr_list_copy:
- * @list: a #PangoAttrList, may be %NULL
+ * @list (nullable): a #PangoAttrList, may be %NULL
*
* Copy @list and return an identical new list.
*
- * Return value: the newly allocated #PangoAttrList, with a
+ * Return value: (nullable): the newly allocated #PangoAttrList, with a
* reference count of one, which should
* be freed with pango_attr_list_unref().
* Returns %NULL if @list was %NULL.
@@ -1770,9 +1770,9 @@ pango_attr_iterator_destroy (PangoAttrIterator *iterator)
* the attribute whose range starts closest to the current location
* is used.
*
- * Return value: the current attribute of the given type, or %NULL if
- * no attribute of that type applies to the current
- * location.
+ * Return value: (nullable): the current attribute of the given type,
+ * or %NULL if no attribute of that type applies to the
+ * current location.
**/
PangoAttribute *
pango_attr_iterator_get (PangoAttrIterator *iterator,
@@ -1966,8 +1966,8 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
* of @list for which @func returns %TRUE and inserts them into
* a new list.
*
- * Return value: (transfer full): the new #PangoAttrList or %NULL if
- * no attributes of the given types were found.
+ * Return value: (transfer full) (nullable): the new #PangoAttrList or
+ * %NULL if no attributes of the given types were found.
*
* Since: 1.2
**/