mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02: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:
1 parent
0a06ddd9e3
commit
5bfac9036d
1 file changed
+1
-2
+1
-2
@@ -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