mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
wIconUpdate image preselected
The function wIconUpdate can receive a image to setup as icon image. If image is NULL, then use the original method, using different procedures to get the image.
This commit is contained in:
committed by
Carlos R. Mafra
parent
faa74a14b1
commit
522d84b0ef
@@ -541,7 +541,7 @@ static void keepIconsCallback(WMenu *menu, WMenuEntry *entry)
|
||||
aicon->icon->shadowed = 0;
|
||||
|
||||
/* Update the icon images */
|
||||
wIconUpdate(aicon->icon);
|
||||
wIconUpdate(aicon->icon, NULL);
|
||||
|
||||
/* Paint it */
|
||||
wAppIconPaint(aicon);
|
||||
@@ -1938,7 +1938,7 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y, Bool update_icon
|
||||
|
||||
/* Update the icon images */
|
||||
if (lupdate_icon)
|
||||
wIconUpdate(icon->icon);
|
||||
wIconUpdate(icon->icon, NULL);
|
||||
|
||||
/* Paint it */
|
||||
wAppIconPaint(icon);
|
||||
@@ -2089,7 +2089,7 @@ static Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x,
|
||||
|
||||
/* Update the icon images */
|
||||
if (update_icon)
|
||||
wIconUpdate(icon->icon);
|
||||
wIconUpdate(icon->icon, NULL);
|
||||
|
||||
/* Paint it */
|
||||
wAppIconPaint(icon);
|
||||
@@ -2166,7 +2166,7 @@ void wDockDetach(WDock *dock, WAppIcon *icon)
|
||||
|
||||
/* Update the icon images */
|
||||
if (update_icon)
|
||||
wIconUpdate(icon->icon);
|
||||
wIconUpdate(icon->icon, NULL);
|
||||
|
||||
/* Paint it */
|
||||
wAppIconPaint(icon);
|
||||
|
||||
Reference in New Issue
Block a user