[yocto] [matchbox-desktop-2][PATCH 10/16] main: ignore file not found errors when loading CSS
Jussi Kukkonen
jussi.kukkonen at intel.com
Thu Apr 28 06:03:03 PDT 2016
From: Ross Burton <ross.burton at intel.com>
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 7b8a276..261198e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,7 +63,7 @@ load_style (GtkWidget *widget)
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_path (GTK_CSS_PROVIDER (provider),
PKGDATADIR "/style.css", &error);
- if (error) {
+ if (error && !g_error_matches (error, GTK_CSS_PROVIDER_ERROR, GTK_CSS_PROVIDER_ERROR_IMPORT)) {
g_warning ("Cannot load CSS: %s", error->message);
g_error_free (error);
} else {
--
2.8.1
More information about the yocto
mailing list