diff options
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r-- | gtk/gtkcssstylepropertyimpl.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index 2f365ead22..58be0bc143 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -183,16 +183,9 @@ color_parse (GtkCssStyleProperty *property, { GtkSymbolicColor *symbolic; - 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 NULL; - } + symbolic = _gtk_css_parser_read_symbolic_color (parser); + if (symbolic == NULL) + return NULL; return _gtk_css_value_new_take_symbolic_color (symbolic); } |