wIconSetHighlited: Do not create the icon again
authorRodolfo García Peñas (kix) <kix@kix.es>
Sat, 3 Nov 2012 18:54:06 +0000 (3 19:54 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 4 Nov 2012 12:54:16 +0000 (4 12:54 +0000)
The function wIconSetHighlited() is now faster because it doesn't
re-create the icon before setting the Highlited status. Now it only
draws the icon pixmap.

src/icon.c

index 9aa18c7..2980db8 100644 (file)
@@ -554,8 +554,7 @@ void wIconSetHighlited(WIcon *icon, Bool flag)
                return;
 
        icon->highlighted = flag;
-       icon->force_paint = True;
-       wIconPaint(icon);
+       update_icon_pixmap(icon);
 }
 #endif