diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-10-16 06:00:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-10-16 06:02:03 -0400 |
commit | 4e09e180e4a47ab03193cad71273130817fb8d83 (patch) | |
tree | 6f2e9a67e30b8344023f70248a834e9452e82f96 /gtk/gtkcssshorthandpropertyimpl.c | |
parent | f9dae1d526f84bb9af4dcc415c9ff7ae8dbc3540 (diff) | |
download | gtk+-4e09e180e4a47ab03193cad71273130817fb8d83.tar.gz |
Fix css parser tests
Parsing a shorthand background property was running into unexpected
errors when trying position values where there were none. To fix this,
introduce a try_parse variant of the position parse function that
silently returns NULL.
Diffstat (limited to 'gtk/gtkcssshorthandpropertyimpl.c')
-rw-r--r-- | gtk/gtkcssshorthandpropertyimpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c index 7dd3e3d1f2..0e9524d2ea 100644 --- a/gtk/gtkcssshorthandpropertyimpl.c +++ b/gtk/gtkcssshorthandpropertyimpl.c @@ -484,7 +484,7 @@ parse_one_background (GtkCssShorthandProperty *shorthand, values[0] = _gtk_css_image_value_new (image); } else if (values[1] == NULL && - (value = _gtk_css_position_value_parse (parser))) + (value = _gtk_css_position_value_try_parse (parser))) { values[1] = value; value = NULL; |