summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-08-30 21:47:53 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-08-30 21:47:53 +0000
commit2df85022f0e80a1f0bd764293b74271e9f4abf34 (patch)
tree191fc39d36d26dca5097b22c79f59dad2b628ebb /pango/pango-attributes.c
parent0f2615464faf95bdb37870db514eee84a3c7d3cc (diff)
downloadpango-2df85022f0e80a1f0bd764293b74271e9f4abf34.tar.gz
New file, move color handling here.
Thu Aug 30 17:34:52 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-color.c: New file, move color handling here. * pango/pango-attributes.[ch] pango/pango-markup.c pango/pango-color.c: Export pango_color_parse, change it to take a PangoColor as its argument.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 66accc6b..d2519f89 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1539,57 +1539,3 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
}
}
}
-
-GType
-pango_color_get_type (void)
-{
- static GType our_type = 0;
-
- if (our_type == 0)
- our_type = g_boxed_type_register_static ("PangoColor",
- NULL,
- (GBoxedCopyFunc) pango_color_copy,
- (GBoxedFreeFunc) pango_color_free,
- FALSE);
-
- return our_type;
-}
-
-/**
- * pango_color_copy:
- * @src: color to copy
- *
- * Creates a copy of @src, which should be freed with
- * pango_color_free(). Primarily used by language bindings,
- * not that useful otherwise (since colors can just be copied
- * by assignment in C).
- *
- * Return value: an allocated #PangoColor
- **/
-PangoColor*
-pango_color_copy (const PangoColor *src)
-{
- PangoColor *ret;
-
- g_return_val_if_fail (src != NULL, NULL);
-
- ret = g_new (PangoColor, 1);
-
- *ret = *src;
-
- return ret;
-}
-
-/**
- * pango_color_free:
- * @color: an allocated #PangoColor
- *
- * Frees a color allocated by pango_color_copy().
- **/
-void
-pango_color_free (PangoColor *color)
-{
- g_return_if_fail (color != NULL);
-
- g_free (color);
-}