Add a deprecation error for the engine css property

This helps people fix up their css.
This commit is contained in:
Matthias Clasen 2015-11-20 19:04:14 -05:00
parent df55412ba2
commit d2d521d4b5

View File

@ -2485,6 +2485,16 @@ parse_declaration (GtkCssScanner *scanner,
return;
}
if (strcmp (name, "engine") == 0)
{
gtk_css_provider_error (scanner->provider,
scanner,
GTK_CSS_PROVIDER_ERROR,
GTK_CSS_PROVIDER_ERROR_DEPRECATED,
"The '%s' property is ignored",
name);
}
if (!_gtk_css_parser_try (scanner->parser, ":", TRUE))
{
gtk_css_provider_invalid_token (scanner->provider, scanner, "':'");