diff options
author | Christian Persch <chpe@gnome.org> | 2008-05-24 16:22:06 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2010-11-04 22:28:46 +0100 |
commit | 807c776bf36667c697c0c9bd76d37160e9c1d8cc (patch) | |
tree | eab1a7fbafb2476e53c5148d7f786febe143da1f /pango/pango-language.c | |
parent | c06264ae25218dd72a70bf5eb93d552f2763f9aa (diff) | |
download | pango-807c776bf36667c697c0c9bd76d37160e9c1d8cc.tar.gz |
Use G_DEFINE_BOXED_TYPE.
Bug #539622.
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r-- | pango/pango-language.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c index bfde3087..a1675886 100644 --- a/pango/pango-language.c +++ b/pango/pango-language.c @@ -129,17 +129,9 @@ pango_language_free (PangoLanguage *language G_GNUC_UNUSED) return; /* nothing */ } -GType -pango_language_get_type (void) -{ - static GType our_type = 0; - - if (G_UNLIKELY (our_type == 0)) - our_type = g_boxed_type_register_static (I_("PangoLanguage"), - (GBoxedCopyFunc)pango_language_copy, - (GBoxedFreeFunc)pango_language_free); - return our_type; -} +G_DEFINE_BOXED_TYPE (PangoLanguage, pango_language, + pango_language_copy, + pango_language_free); /** * _pango_get_lc_ctype: |