summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-07-02 14:17:18 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-07-02 14:17:18 +0000
commit977dbeb2e823baa4940dbd8cfc054deed3017548 (patch)
tree55bb75b2a55105562cde92dfe3cb125e8db91686 /pango/pango-utils.c
parentd5f6f37adfff287b5d5cc1aadfb4cb79f3596d1f (diff)
downloadpango-977dbeb2e823baa4940dbd8cfc054deed3017548.tar.gz
copy function. (pango_glyph_string_get_type): implement get_type function.
2001-07-02 James Henstridge <james@daa.com.au> * pango/glyphstring.c (pango_glyph_string_copy): copy function. (pango_glyph_string_get_type): implement get_type function. * pango/pango-glyph.h (pango_glyph_string_get_type): get_type function prototype. (pango_glyph_string_copy): prototype for copy function. * pango/pango-utils.c (pango_language_get_type): implementation. * pango/pango-types.h (pango_language_get_type): get_type function. * pango/pango-tabs.c (pango_tab_array_get_type): implementation. * pango/pango-tabs.h (pango_tab_array_get_type): get_type function. * pango/fonts.c (pango_font_description_get_type): implementation. * pango/pango-font.h (pango_font_description_get_type): add get_type function for typecode.
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