summaryrefslogtreecommitdiff
path: root/pango/serializer.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/serializer.c')
-rw-r--r--pango/serializer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/pango/serializer.c b/pango/serializer.c
index 9a1ee065..6ff7a3a4 100644
--- a/pango/serializer.c
+++ b/pango/serializer.c
@@ -72,12 +72,11 @@ static const char *stretch_names[] = {
NULL
};
-static const char *underline_names[] = {
+static const char *line_style_names[] = {
"none",
"single",
"double",
- "low",
- "error",
+ "dotted",
NULL
};
@@ -325,7 +324,7 @@ add_attribute (GtkJsonPrinter *printer,
break;
case PANGO_ATTR_UNDERLINE:
- gtk_json_printer_add_string (printer, "value", underline_names[attr->int_value]);
+ gtk_json_printer_add_string (printer, "value", line_style_names[attr->int_value]);
break;
case PANGO_ATTR_UNDERLINE_POSITION:
@@ -1013,7 +1012,7 @@ attr_for_type (GtkJsonParser *parser,
break;
case PANGO_ATTR_UNDERLINE:
- attr = pango_attr_underline_new ((PangoUnderline) parser_select_string (parser, underline_names));
+ attr = pango_attr_underline_new ((PangoLineStyle) parser_select_string (parser, line_style_names));
break;
case PANGO_ATTR_UNDERLINE_POSITION: