summaryrefslogtreecommitdiff
path: root/pango/pango-item.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-22 15:33:12 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-07-22 15:33:12 +0000
commitc040d51c9c76932fea029a6e1faf14f6ebc26168 (patch)
tree2f454f8b8f8f63b8d999b6fe7c2568cdca91dd37 /pango/pango-item.c
parenta7507ca9d7d0679083242cec0c75a973df8ea181 (diff)
downloadpango-c040d51c9c76932fea029a6e1faf14f6ebc26168.tar.gz
Based on patch from Gustavo J. A. M. Carneiro (#305975)
2005-07-21 Owen Taylor <otaylor@redhat.com> Based on patch from Gustavo J. A. M. Carneiro (#305975) * pango/pango-layout.[ch] (pango_layout_line_ref) pango/pango-attributes.[ch] (pango_attr_list_ref): Return the argument to _ref() functions. * pango/pango-item.[ch]: Register PangoItem boxed type. * pango/pango-layout.[ch]: Register PangoLayoutLine boxed type.
Diffstat (limited to 'pango/pango-item.c')
-rw-r--r--pango/pango-item.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pango-item.c b/pango/pango-item.c
index c1857a1e..a8b5aae0 100644
--- a/pango/pango-item.c
+++ b/pango/pango-item.c
@@ -93,6 +93,18 @@ pango_item_free (PangoItem *item)
g_free (item);
}
+GType
+pango_item_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("PangoItem",
+ (GBoxedCopyFunc) pango_item_copy,
+ (GBoxedFreeFunc) pango_item_free);
+ return our_type;
+}
+
/**
* pango_item_split:
* @orig: a #PangoItem