summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-05 22:22:52 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:20 +0200
commit51da8cb263be618ec30f365a0b492c39f006a7cc (patch)
tree928627300ad6bef1e5dc304502dd9b55395dceaa /gtk/gtkcssshorthandpropertyimpl.c
parent83be7e5dbd33a22f809dc78d4aaab951b290d710 (diff)
downloadgtk+-51da8cb263be618ec30f365a0b492c39f006a7cc.tar.gz
symboliccolor: Parse 'currentColor' everywhere
Diffstat (limited to 'gtk/gtkcssshorthandpropertyimpl.c')
-rw-r--r--gtk/gtkcssshorthandpropertyimpl.c13
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);