diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-11 04:40:56 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-11 04:40:56 +0000 |
commit | 89210da5f5a866900b31bd5ebe3c4d5c5e155368 (patch) | |
tree | 25b47a6babda96eb6120ce1341384fd11ee32244 | |
parent | 490f8979a260c16b1df055eab386345da18a2d54 (diff) | |
parent | 3d5b7c10fbe63c069af4c140126c2295d1b75016 (diff) | |
download | pango-89210da5f5a866900b31bd5ebe3c4d5c5e155368.tar.gz |
Merge branch 'attribute-boxes' into 'master'
Make PangoAttribute a boxed type
Closes #259
See merge request GNOME/pango!78
-rw-r--r-- | pango/pango-attributes.c | 4 | ||||
-rw-r--r-- | pango/pango-attributes.h | 3 |
2 files changed, 7 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 diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h index e9b19571..cff495b2 100644 --- a/pango/pango-attributes.h +++ b/pango/pango-attributes.h @@ -57,6 +57,9 @@ PANGO_AVAILABLE_IN_ALL GType pango_color_get_type (void) G_GNUC_CONST; PANGO_AVAILABLE_IN_ALL +GType pango_attribute_get_type (void) G_GNUC_CONST; + +PANGO_AVAILABLE_IN_ALL PangoColor *pango_color_copy (const PangoColor *src); PANGO_AVAILABLE_IN_ALL void pango_color_free (PangoColor *color); |