summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 28c11de6..a253a67c 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1084,18 +1084,9 @@ pango_attr_gravity_hint_new (PangoGravityHint hint)
* Attribute List
*/
-GType
-pango_attr_list_get_type (void)
-{
- static GType our_type = 0;
-
- if (G_UNLIKELY (our_type == 0))
- our_type = g_boxed_type_register_static (I_("PangoAttrList"),
- (GBoxedCopyFunc) pango_attr_list_copy,
- (GBoxedFreeFunc) pango_attr_list_unref);
-
- return our_type;
-}
+G_DEFINE_BOXED_TYPE (PangoAttrList, pango_attr_list,
+ pango_attr_list_copy,
+ pango_attr_list_unref);
/**
* pango_attr_list_new: