diff options
author | Benjamin Otte <otte@redhat.com> | 2012-10-12 17:36:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-10-12 17:45:45 +0200 |
commit | a81ccff4f5988c1154207d0522c1f9b395f20570 (patch) | |
tree | 97ed040a194896a8538168e46b8975083e2e3c0d /gtk/gtkcsspositionvalue.c | |
parent | 661f0f547b2c3b180df0e801da91c419250afb1e (diff) | |
download | gtk+-a81ccff4f5988c1154207d0522c1f9b395f20570.tar.gz |
cssvalue: Print an error when failing to parse background-position
... in the case where a completely invalid value was used.
Diffstat (limited to 'gtk/gtkcsspositionvalue.c')
-rw-r--r-- | gtk/gtkcsspositionvalue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcsspositionvalue.c b/gtk/gtkcsspositionvalue.c index 6f33de73a1..09c845d2fc 100644 --- a/gtk/gtkcsspositionvalue.c +++ b/gtk/gtkcsspositionvalue.c @@ -224,7 +224,10 @@ _gtk_css_position_value_parse (GtkCssParser *parser) return NULL; } else - return NULL; + { + _gtk_css_parser_error (parser, "Unrecognized position value"); + return NULL; + } } for (second = 0; names[second].name != NULL; second++) |