1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-24 07:02:30 +01:00

wIconChangeImageFile set the file image

The function wIconChangeImageFile set the file_image variable directly,
now the code is faster and the assigned image is used.

Before this patch, the assigned file couldn't be used, because wIconUpdate
serached the icon using different methods.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-15 00:56:26 +01:00
committed by Carlos R. Mafra
parent 0a06ddd9e3
commit 5bfac9036d

View File

@@ -398,9 +398,8 @@ Bool wIconChangeImageFile(WIcon *icon, char *file)
unset_icon_image(icon);
/* Set the new image */
icon->file_image = image;
icon->file = wstrdup(path);
wIconUpdate(icon, NULL);
wIconUpdate(icon, image);
} else {
error = 1;
}