mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
desktop-entry: accept uppercase icon endings
This commit is contained in:
parent
10c6abb36a
commit
d53cf642f5
1 changed files with 3 additions and 3 deletions
|
|
@ -202,11 +202,11 @@ static int
|
|||
process_abs_name(struct icon_ctx *ctx, const char *icon_name)
|
||||
{
|
||||
ctx->path = xstrdup(icon_name);
|
||||
if (str_endswith(icon_name, ".png")) {
|
||||
if (str_endswith_ignore_case(icon_name, ".png")) {
|
||||
ctx->format = SFDO_ICON_FILE_FORMAT_PNG;
|
||||
} else if (str_endswith(icon_name, ".svg")) {
|
||||
} else if (str_endswith_ignore_case(icon_name, ".svg")) {
|
||||
ctx->format = SFDO_ICON_FILE_FORMAT_SVG;
|
||||
} else if (str_endswith(icon_name, ".xpm")) {
|
||||
} else if (str_endswith_ignore_case(icon_name, ".xpm")) {
|
||||
ctx->format = SFDO_ICON_FILE_FORMAT_XPM;
|
||||
} else {
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue