css: Make font property a shorthand

... and implement the CSS font properties:
- font-size
- font-style
- font-family
- font-weight
- font-variant
This commit is contained in:
Benjamin Otte
2011-05-29 07:03:59 +02:00
parent 8d77fcb2d5
commit cf6bfbdb17
4 changed files with 272 additions and 8 deletions

View File

@ -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);