From 5bfac9036dd9c4fac3075e365155a97feb54ff42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Thu, 15 Nov 2012 00:56:26 +0100 Subject: [PATCH] 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. --- src/icon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/icon.c b/src/icon.c index e745619f..f1f9c67d 100644 --- a/src/icon.c +++ b/src/icon.c @@ -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; } -- 2.11.4.GIT