Add log message when failing to load an icon
This commit is contained in:
parent
806ba9b978
commit
2a1c4946b5
@ -63,9 +63,11 @@ static GdkPixbuf *get_pixbuf_from_file(const char *filename)
|
|||||||
if (is_readable_file(filename)) {
|
if (is_readable_file(filename)) {
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
pixbuf = gdk_pixbuf_new_from_file(filename, &error);
|
pixbuf = gdk_pixbuf_new_from_file(filename, &error);
|
||||||
if (!pixbuf)
|
if (!pixbuf) {
|
||||||
|
LOG_W("%s", error->message);
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return pixbuf;
|
return pixbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,7 +118,7 @@ GdkPixbuf *get_pixbuf_from_icon(const char *iconname)
|
|||||||
} while (*(end) != '\0');
|
} while (*(end) != '\0');
|
||||||
}
|
}
|
||||||
if (!pixbuf)
|
if (!pixbuf)
|
||||||
LOG_W("Could not load icon: '%s'", iconname);
|
LOG_W("No icon found for: '%s'", iconname);
|
||||||
|
|
||||||
g_free(uri_path);
|
g_free(uri_path);
|
||||||
return pixbuf;
|
return pixbuf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user