diff options
author | Benjamin Otte <otte@redhat.com> | 2021-09-20 05:57:14 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-09-20 05:57:14 +0200 |
commit | e931afdc9b97786a76d6f9e9646b86aad8781eb0 (patch) | |
tree | 0defe8cafe08c83cfc57d4b03752981ce2239cc6 /gtk/gtkcssprovider.c | |
parent | e9cf8c6cc766f3314097ae8a01f19dadee1b6b74 (diff) | |
download | gtk+-e931afdc9b97786a76d6f9e9646b86aad8781eb0.tar.gz |
cssprovider: Be clearer about warnings vs errors
The CSS parser tried to warn about unexpected syntax that the spec
doesn't define as an error.
Diffstat (limited to 'gtk/gtkcssprovider.c')
-rw-r--r-- | gtk/gtkcssprovider.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 0baa6f9b68..591e49e69d 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -180,7 +180,8 @@ gtk_css_provider_parsing_error (GtkCssProvider *provider, { char *s = gtk_css_section_to_string (section); - g_warning ("Theme parsing error: %s: %s", + g_warning ("Theme parser %s: %s: %s", + error->domain == GTK_CSS_PARSER_WARNING ? "warning" : "error", s, error->message); |