Skip to content

Commit

Permalink
Add xpm to supported icon extensions
Browse files Browse the repository at this point in the history
The freedesktop icon spec specifies that xpm image files should be
supported for backwards compatibility.
  • Loading branch information
tsipinakis committed May 14, 2018
1 parent dffe1e1 commit 806ba9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 806ba9b

Please sign in to comment.