diff options
author | Benjamin Otte <otte@redhat.com> | 2012-04-05 22:22:52 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:20 +0200 |
commit | 51da8cb263be618ec30f365a0b492c39f006a7cc (patch) | |
tree | 928627300ad6bef1e5dc304502dd9b55395dceaa /gtk/gtkcssshorthandpropertyimpl.c | |
parent | 83be7e5dbd33a22f809dc78d4aaab951b290d710 (diff) | |
download | gtk+-51da8cb263be618ec30f365a0b492c39f006a7cc.tar.gz |
symboliccolor: Parse 'currentColor' everywhere
Diffstat (limited to 'gtk/gtkcssshorthandpropertyimpl.c')
-rw-r--r-- | gtk/gtkcssshorthandpropertyimpl.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c index b86b76110b..5ce3096756 100644 --- a/gtk/gtkcssshorthandpropertyimpl.c +++ b/gtk/gtkcssshorthandpropertyimpl.c @@ -221,16 +221,9 @@ parse_border_color (GtkCssShorthandProperty *shorthand, for (i = 0; i < 4; i++) { - if (_gtk_css_parser_try (parser, "currentcolor", TRUE)) - { - symbolic = gtk_symbolic_color_ref (_gtk_symbolic_color_get_current_color ()); - } - else - { - symbolic = _gtk_css_parser_read_symbolic_color (parser); - if (symbolic == NULL) - return FALSE; - } + symbolic = _gtk_css_parser_read_symbolic_color (parser); + if (symbolic == NULL) + return FALSE; values[i] = _gtk_css_value_new_take_symbolic_color (symbolic); |