summaryrefslogtreecommitdiff
path: root/gtk/gtkcsspositionvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-10-12 17:36:28 +0200
committerBenjamin Otte <otte@redhat.com>2012-10-12 17:45:45 +0200
commita81ccff4f5988c1154207d0522c1f9b395f20570 (patch)
tree97ed040a194896a8538168e46b8975083e2e3c0d /gtk/gtkcsspositionvalue.c
parent661f0f547b2c3b180df0e801da91c419250afb1e (diff)
downloadgtk+-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.c5
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++)