summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-08-02 11:16:28 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-08-02 11:16:28 +0100
commitf5cd8b93e0f3b463ba4f660cce2db86dfef0a165 (patch)
tree41ec38e98c68def2147e7ac50e6417b88eb8414d /pango/pango-attributes.c
parentbd6dcbcc2b6103b1102c84e219034ba55ec80fe5 (diff)
downloadpango-f5cd8b93e0f3b463ba4f660cce2db86dfef0a165.tar.gz
Add a boxed type for PangoAttrIterator
Makes it usable by language bindings, and avoids warnings when generating introspection data. We already have the necessary public API, we're just missing a GType for it.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index b5e0f77c..2f02e264 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1835,6 +1835,11 @@ pango_attr_list_get_attributes (PangoAttrList *list)
return g_slist_copy_deep (list->attributes, (GCopyFunc)pango_attribute_copy, NULL);
}
+G_DEFINE_BOXED_TYPE (PangoAttrIterator,
+ pango_attr_iterator,
+ pango_attr_iterator_copy,
+ pango_attr_iterator_destroy)
+
/**
* pango_attr_list_get_iterator:
* @list: a #PangoAttrList