[gtk+] Add a deprecation error for the engine css property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add a deprecation error for the engine css property
- Date: Sat, 21 Nov 2015 01:35:51 +0000 (UTC)
commit d2d521d4b50a18f5c2fa215dc1ced0de86eec91e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 20 19:04:14 2015 -0500
Add a deprecation error for the engine css property
This helps people fix up their css.
gtk/gtkcssprovider.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index da7564b..bda3a91 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -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, "':'");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]