summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-01-04 15:19:40 +0000
committerRichard Hughes <richard@hughsie.com>2017-01-04 15:20:18 +0000
commit30a12dfefeeaad03f5cafc0179b7378f8678297d (patch)
tree4730103e261a47ee118422394c763e62e65a844d
parent4519b335fc02d231e44d10e95d02e9beb38dbec5 (diff)
downloadappstream-glib-30a12dfefeeaad03f5cafc0179b7378f8678297d.tar.gz
Allow loading application XPM icons
Ignoring XPM icons made sense as a way of ignoring unmaintained applications before AppData files were mandatory. Now we have the latter we should load valid application XPM icons if they are large enough for the builder tests. Some package maintainers were just converting the icons at package build time to just avoid the veto.
-rw-r--r--libappstream-glib/as-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c
index 2f48940..0ee992b 100644
--- a/libappstream-glib/as-image.c
+++ b/libappstream-glib/as-image.c
@@ -544,6 +544,7 @@ as_image_load_filename_full (AsImage *image,
}
if (g_strcmp0 (gdk_pixbuf_format_get_name (fmt), "png") != 0 &&
g_strcmp0 (gdk_pixbuf_format_get_name (fmt), "jpeg") != 0 &&
+ g_strcmp0 (gdk_pixbuf_format_get_name (fmt), "xpm") != 0 &&
g_strcmp0 (gdk_pixbuf_format_get_name (fmt), "svg") != 0) {
g_set_error (error,
AS_UTILS_ERROR,