summaryrefslogtreecommitdiff
path: root/pango/pango-tabs.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-tabs.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-tabs.c')
-rw-r--r--pango/pango-tabs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c
index 38319741..4dc9a319 100644
--- a/pango/pango-tabs.c
+++ b/pango/pango-tabs.c
@@ -152,6 +152,20 @@ pango_tab_array_new_with_positions (gint size,
return array;
}
+GType
+pango_tab_array_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("PangoTabArray",
+ NULL,
+ (GBoxedCopyFunc)pango_tab_array_copy,
+ (GBoxedFreeFunc)pango_tab_array_free,
+ FALSE);
+ return our_type;
+}
+
/**
* pango_tab_array_copy:
* @src: #PangoTabArray to copy