summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-11 00:37:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-11 00:37:24 -0400
commit3d5b7c10fbe63c069af4c140126c2295d1b75016 (patch)
tree25b47a6babda96eb6120ce1341384fd11ee32244 /pango/pango-attributes.c
parent490f8979a260c16b1df055eab386345da18a2d54 (diff)
downloadpango-3d5b7c10fbe63c069af4c140126c2295d1b75016.tar.gz
Make PangoAttribute a boxed type
Based on a patch by Matijs van Zuijlen <matijs@matijs.net>. Closes https://gitlab.gnome.org/GNOME/pango/issues/259
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index df3104f0..85e5a240 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -192,6 +192,10 @@ pango_attribute_destroy (PangoAttribute *attr)
attr->klass->destroy (attr);
}
+G_DEFINE_BOXED_TYPE (PangoAttribute, pango_attribute,
+ pango_attribute_copy,
+ pango_attribute_destroy);
+
/**
* pango_attribute_equal:
* @attr1: a #PangoAttribute