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:
committed by
Carlos R. Mafra
parent
0a06ddd9e3
commit
5bfac9036d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user