summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-05-29 07:03:59 +0200
committerBenjamin Otte <otte@redhat.com>2011-06-02 02:03:52 +0200
commitcf6bfbdb17412a48c72b53aa1ad6d141114c48bc (patch)
tree6273100a2819b81674fdc55f525c945f5e2c42f0 /gtk/gtkcssparser.c
parent8d77fcb2d54a9743c43f901bc18b7e2bc4ff0751 (diff)
downloadgtk+-cf6bfbdb17412a48c72b53aa1ad6d141114c48bc.tar.gz
css: Make font property a shorthand
... and implement the CSS font properties: - font-size - font-style - font-family - font-weight - font-variant
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r--gtk/gtkcssparser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 3aab85e67a..463baf90bd 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -386,7 +386,10 @@ _gtk_css_parser_read_string (GtkCssParser *parser)
quote = *parser->data;
if (quote != '"' && quote != '\'')
- return NULL;
+ {
+ _gtk_css_parser_error (parser, "Expected a string.");
+ return NULL;
+ }
parser->data++;
str = g_string_new (NULL);