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/gtkcsspositionvalueprivate.h | |
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/gtkcsspositionvalueprivate.h')
-rw-r--r-- | gtk/gtkcsspositionvalueprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcsspositionvalueprivate.h b/gtk/gtkcsspositionvalueprivate.h index ee3b1521cd..d1d113bb13 100644 --- a/gtk/gtkcsspositionvalueprivate.h +++ b/gtk/gtkcsspositionvalueprivate.h @@ -26,8 +26,9 @@ G_BEGIN_DECLS GtkCssValue * _gtk_css_position_value_new (GtkCssValue *x, - GtkCssValue *y); + GtkCssValue *y); GtkCssValue * _gtk_css_position_value_parse (GtkCssParser *parser); +GtkCssValue * _gtk_css_position_value_try_parse (GtkCssParser *parser); double _gtk_css_position_value_get_x (const GtkCssValue *position, double one_hundred_percent); |