From 5b208e3d76a6020ca0d0e8f2b4e1add3c0c6ee37 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 4 Jan 2017 15:19:40 +0000 Subject: 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. --- libappstream-glib/as-image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c index dff68f7..822d462 100644 --- a/libappstream-glib/as-image.c +++ b/libappstream-glib/as-image.c @@ -558,6 +558,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, -- cgit v1.2.1