summaryrefslogtreecommitdiff
path: root/pango/pango-tabs.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2008-05-24 16:22:06 +0200
committerChristian Persch <chpe@gnome.org>2010-11-04 22:28:46 +0100
commit807c776bf36667c697c0c9bd76d37160e9c1d8cc (patch)
treeeab1a7fbafb2476e53c5148d7f786febe143da1f /pango/pango-tabs.c
parentc06264ae25218dd72a70bf5eb93d552f2763f9aa (diff)
downloadpango-807c776bf36667c697c0c9bd76d37160e9c1d8cc.tar.gz
Use G_DEFINE_BOXED_TYPE.
Bug #539622.
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r--pango/pango-tabs.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c
index 6091d275..aec86129 100644
--- a/pango/pango-tabs.c
+++ b/pango/pango-tabs.c
@@ -156,17 +156,9 @@ pango_tab_array_new_with_positions (gint size,
return array;
}
-GType
-pango_tab_array_get_type (void)
-{
- static GType our_type = 0;
-
- if (G_UNLIKELY (our_type == 0))
- our_type = g_boxed_type_register_static (I_("PangoTabArray"),
- (GBoxedCopyFunc)pango_tab_array_copy,
- (GBoxedFreeFunc)pango_tab_array_free);
- return our_type;
-}
+G_DEFINE_BOXED_TYPE (PangoTabArray, pango_tab_array,
+ pango_tab_array_copy,
+ pango_tab_array_free);
/**
* pango_tab_array_copy: