From 806ba9b9783d5d5074b20575349d62254f87e8b6 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Wed, 2 May 2018 20:30:55 +0300 Subject: [PATCH] Add xpm to supported icon extensions The freedesktop icon spec specifies that xpm image files should be supported for backwards compatibility. --- src/icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icon.c b/src/icon.c index 73322f1..c7ecf8d 100644 --- a/src/icon.c +++ b/src/icon.c @@ -74,7 +74,7 @@ GdkPixbuf *get_pixbuf_from_icon(const char *iconname) if (!iconname || iconname[0] == '\0') return NULL; - const char *suffixes[] = { ".svg", ".png", NULL }; + const char *suffixes[] = { ".svg", ".png", ".xpm", NULL }; GdkPixbuf *pixbuf = NULL; gchar *uri_path = NULL;