[gtk/wip/otte/for-master: 1/2] cssprovider: Be clearer about warnings vs errors
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 1/2] cssprovider: Be clearer about warnings vs errors
- Date: Mon, 20 Sep 2021 05:05:30 +0000 (UTC)
commit e931afdc9b97786a76d6f9e9646b86aad8781eb0
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 05:57:14 2021 +0200
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.
gtk/gtkcssprovider.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]