summaryrefslogtreecommitdiff
path: root/pango/pango-markup.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2004-02-29 20:46:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-02-29 20:46:30 +0000
commit25c8ec71bed7f5daa42b17220e0bf00a1ef1e3bc (patch)
treedd9deb76034448b2e12777d8a62df99405f6388b /pango/pango-markup.c
parentb1a7956a523e80a793461cc11d8d15c6b51b4dcc (diff)
downloadpango-25c8ec71bed7f5daa42b17220e0bf00a1ef1e3bc.tar.gz
un Feb 29 15:31:09 2004 Owen Taylor <otaylor@redhat.com>
Patch from Nicolas Setton, #114237 * pango/pango-attributes.h pango/pango-markup.c: Add a new underline type, PANGO_UNDERLINE_ERROR. * pango/pangowin32.c pango/pangox.c pango/pangoft2.c: Implement drawing of PANGO_UNDERLINE_ERROR. * pango/pango-layout.c (pango_layout_run_get_extents): Handle PANGO_UNDERLINE_ERROR.
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r--pango/pango-markup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 3764fdcb..a4bd108c 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1151,6 +1151,8 @@ span_parse_func (MarkupData *md,
ul = PANGO_UNDERLINE_DOUBLE;
else if (strcmp (underline, "low") == 0)
ul = PANGO_UNDERLINE_LOW;
+ else if (strcmp (underline, "error") == 0)
+ ul = PANGO_UNDERLINE_ERROR;
else if (strcmp (underline, "none") == 0)
ul = PANGO_UNDERLINE_NONE;
else