summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-22 15:33:12 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-07-22 15:33:12 +0000
commitc040d51c9c76932fea029a6e1faf14f6ebc26168 (patch)
tree2f454f8b8f8f63b8d999b6fe7c2568cdca91dd37 /pango/pango-attributes.c
parenta7507ca9d7d0679083242cec0c75a973df8ea181 (diff)
downloadpango-c040d51c9c76932fea029a6e1faf14f6ebc26168.tar.gz
Based on patch from Gustavo J. A. M. Carneiro (#305975)
2005-07-21 Owen Taylor <otaylor@redhat.com> Based on patch from Gustavo J. A. M. Carneiro (#305975) * pango/pango-layout.[ch] (pango_layout_line_ref) pango/pango-attributes.[ch] (pango_attr_list_ref): Return the argument to _ref() functions. * pango/pango-item.[ch]: Register PangoItem boxed type. * pango/pango-layout.[ch]: Register PangoLayoutLine boxed type.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 4cf1f616..ecf41e47 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -965,13 +965,17 @@ pango_attr_list_new (void)
* @list: a #PangoAttrList
*
* Increase the reference count of the given attribute list by one.
+ *
+ * Return value: The attribute list passed in (since 1.10)
**/
-void
+PangoAttrList *
pango_attr_list_ref (PangoAttrList *list)
{
- g_return_if_fail (list != NULL);
+ g_return_val_if_fail (list != NULL, NULL);
list->ref_count++;
+
+ return list;
}
/**