diff options
author | Evan Nemerson <evan@nemerson.com> | 2014-05-30 19:21:11 -0700 |
---|---|---|
committer | Evan Nemerson <evan@nemerson.com> | 2014-10-16 13:09:34 -0700 |
commit | fa6ded9b0d065634481d8ae4126fdea0b88e3558 (patch) | |
tree | 151efb6762bf467ada2ac104770fdefd293b7248 /pango/pango-color.c | |
parent | adb5a4e86b09b0935ec1dd71bf05ac41807c84a2 (diff) | |
download | pango-fa6ded9b0d065634481d8ae4126fdea0b88e3558.tar.gz |
Add many missing nullability annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=731022
Diffstat (limited to 'pango/pango-color.c')
-rw-r--r-- | pango/pango-color.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pango/pango-color.c b/pango/pango-color.c index e54eb0d3..47a98236 100644 --- a/pango/pango-color.c +++ b/pango/pango-color.c @@ -33,16 +33,16 @@ G_DEFINE_BOXED_TYPE (PangoColor, pango_color, /** * pango_color_copy: - * @src: color to copy, may be %NULL + * @src: (nullable): color to copy, may be %NULL * * Creates a copy of @src, which should be freed with * pango_color_free(). Primarily used by language bindings, * not that useful otherwise (since colors can just be copied * by assignment in C). * - * Return value: the newly allocated #PangoColor, which should - * be freed with pango_color_free(), or %NULL - * if @src was %NULL. + * Return value: (nullable): the newly allocated #PangoColor, which + * should be freed with pango_color_free(), or %NULL if + * @src was %NULL. **/ PangoColor* pango_color_copy (const PangoColor *src) @@ -61,7 +61,7 @@ pango_color_copy (const PangoColor *src) /** * pango_color_free: - * @color: an allocated #PangoColor, may be %NULL + * @color: (nullable): an allocated #PangoColor, may be %NULL * * Frees a color allocated by pango_color_copy(). **/ @@ -207,7 +207,8 @@ hex (const char *spec, /** * pango_color_parse: - * @color: a #PangoColor structure in which to store the result, or %NULL + * @color: (nullable): a #PangoColor structure in which to store the + * result, or %NULL * @spec: a string specifying the new color * * Fill in the fields of a color from a string specification. The |