summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-attributes.c17
-rw-r--r--pango/pango-attributes.h2
2 files changed, 19 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index af04ffed..a28dd7a1 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -683,6 +683,23 @@ pango_attr_shape_new (const PangoRectangle *ink_rect,
return (PangoAttribute *)result;
}
+GType
+pango_attr_list_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ {
+ g_type_init (0);
+
+ our_type = g_boxed_type_register_static ("PangoAttrList",
+ pango_attr_list_copy,
+ pango_attr_list_unref);
+ }
+
+ return our_type;
+}
+
/**
* pango_attr_list_new:
*
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 59012cc3..dc1d887a 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -58,6 +58,7 @@ typedef struct _PangoAttrColor PangoAttrColor;
typedef struct _PangoAttrFontDesc PangoAttrFontDesc;
typedef struct _PangoAttrShape PangoAttrShape;
+#define PANGO_TYPE_ATTR_LIST pango_attr_list_get_type ()
typedef struct _PangoAttrList PangoAttrList;
typedef struct _PangoAttrIterator PangoAttrIterator;
@@ -168,6 +169,7 @@ PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_re
const PangoRectangle *logical_rect);
PangoAttribute *pango_attr_scale_new (double scale_factor);
+GType pango_attr_list_get_type (void) G_GNUC_CONST;
PangoAttrList * pango_attr_list_new (void);
void pango_attr_list_ref (PangoAttrList *list);
void pango_attr_list_unref (PangoAttrList *list);