summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-utils.c')
-rw-r--r--pango/pango-utils.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 568434f2..a899f510 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -934,6 +934,31 @@ lang_hash (gconstpointer key)
return h;
}
+static PangoLanguage *
+pango_language_copy (PangoLanguage *language)
+{
+ return language; /* language tags are const */
+}
+static void
+pango_language_free (PangoLanguage *language)
+{
+ return; /* nothing */
+}
+
+GType
+pango_language_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("PangoLanguage",
+ NULL,
+ (GBoxedCopyFunc)pango_language_copy,
+ (GBoxedFreeFunc)pango_language_free,
+ FALSE);
+ return our_type;
+}
+
/**
* pang_language_from_string:
* @language: a string representing a language tag