Add xpm to supported icon extensions

The freedesktop icon spec specifies that xpm image files should be
supported for backwards compatibility.
This commit is contained in:
Nikos Tsipinakis 2018-05-02 20:30:55 +03:00
parent dffe1e1a5a
commit 806ba9b978

View File

@ -74,7 +74,7 @@ GdkPixbuf *get_pixbuf_from_icon(const char *iconname)
if (!iconname || iconname[0] == '\0') if (!iconname || iconname[0] == '\0')
return NULL; return NULL;
const char *suffixes[] = { ".svg", ".png", NULL }; const char *suffixes[] = { ".svg", ".png", ".xpm", NULL };
GdkPixbuf *pixbuf = NULL; GdkPixbuf *pixbuf = NULL;
gchar *uri_path = NULL; gchar *uri_path = NULL;