summaryrefslogtreecommitdiff
path: root/pango/pango-attributes-private.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-17 17:08:32 +0200
committerTimm Bäder <mail@baedert.org>2020-06-10 05:19:57 +0200
commit009065cf0c8509e9957cfc4fdd05221e3205cc98 (patch)
tree9f697ac8402d4f9da91e6a2937b5a9aed4df1550 /pango/pango-attributes-private.h
parent648bdfad516bd1413800f81c32d63450db4c27e0 (diff)
downloadpango-009065cf0c8509e9957cfc4fdd05221e3205cc98.tar.gz
attrs: Save attribute list in a GPtrArray
Diffstat (limited to 'pango/pango-attributes-private.h')
-rw-r--r--pango/pango-attributes-private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-attributes-private.h b/pango/pango-attributes-private.h
index bf5bdade..e2b9a2d5 100644
--- a/pango/pango-attributes-private.h
+++ b/pango/pango-attributes-private.h
@@ -22,8 +22,13 @@
struct _PangoAttrIterator
{
+ GPtrArray *attrs; /* From the list */
+ guint n_attrs; /* Copied from the list */
+
GSList *next_attribute;
GPtrArray *attribute_stack;
+
+ guint attr_index;
guint start_index;
guint end_index;
};
@@ -31,7 +36,7 @@ struct _PangoAttrIterator
struct _PangoAttrList
{
guint ref_count;
- GSList *attributes;
+ GPtrArray *attributes;
};
void _pango_attr_list_init (PangoAttrList *list);