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-17 10:36:20 +0000
commit5b208e3d76a6020ca0d0e8f2b4e1add3c0c6ee37 (patch)
tree9c0d341960705d29ca8b18aff806ad4d61bc434e
parent8268bd8f32cf216216a544beb051537a7c00de69 (diff)
downloadappstream-glib-5b208e3d76a6020ca0d0e8f2b4e1add3c0c6ee37.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 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,