diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-02-06 22:53:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 14:28:05 -0600 |
commit | 007ef3907e2a2b1410201fc7bc7364968a4343d2 (patch) | |
tree | 1596d4254f55f02930d0cfb2488919a359e63483 /pango/serializer.c | |
parent | ef993ae59bc2e448e26d59e1543c7fea2483d175 (diff) | |
download | pango-007ef3907e2a2b1410201fc7bc7364968a4343d2.tar.gz |
Change color attr api
Make pango_attr_{fore,back}ground_new take a PangoColor*.
Update all callers.
Diffstat (limited to 'pango/serializer.c')
-rw-r--r-- | pango/serializer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/serializer.c b/pango/serializer.c index 773ab3d3..19a3bb2c 100644 --- a/pango/serializer.c +++ b/pango/serializer.c @@ -997,12 +997,12 @@ attr_for_type (GtkJsonParser *parser, case PANGO_ATTR_FOREGROUND: parser_get_color (parser, &color); - attr = pango_attr_foreground_new (color.red, color.green, color.blue); + attr = pango_attr_foreground_new (&color); break; case PANGO_ATTR_BACKGROUND: parser_get_color (parser, &color); - attr = pango_attr_background_new (color.red, color.green, color.blue); + attr = pango_attr_background_new (&color); break; case PANGO_ATTR_UNDERLINE: @@ -1031,12 +1031,12 @@ attr_for_type (GtkJsonParser *parser, case PANGO_ATTR_UNDERLINE_COLOR: parser_get_color (parser, &color); - attr = pango_attr_underline_color_new (color.red, color.green, color.blue); + attr = pango_attr_underline_color_new (&color); break; case PANGO_ATTR_STRIKETHROUGH_COLOR: parser_get_color (parser, &color); - attr = pango_attr_strikethrough_color_new (color.red, color.green, color.blue); + attr = pango_attr_strikethrough_color_new (&color); break; case PANGO_ATTR_ABSOLUTE_SIZE: @@ -1083,7 +1083,7 @@ attr_for_type (GtkJsonParser *parser, case PANGO_ATTR_OVERLINE_COLOR: parser_get_color (parser, &color); - attr = pango_attr_overline_color_new (color.red, color.green, color.blue); + attr = pango_attr_overline_color_new (&color); break; case PANGO_ATTR_LINE_HEIGHT: |