mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +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
@@ -468,12 +468,12 @@ static void updateIconImage(WWindow *wwin)
|
||||
|
||||
/* Refresh the Window Icon */
|
||||
if (wwin->icon)
|
||||
wIconUpdate(wwin->icon);
|
||||
wIconUpdate(wwin->icon, NULL);
|
||||
|
||||
/* Refresh the application icon */
|
||||
WApplication *app = wApplicationOf(wwin->main_window);
|
||||
if (app && app->app_icon) {
|
||||
wIconUpdate(app->app_icon->icon);
|
||||
wIconUpdate(app->app_icon->icon, NULL);
|
||||
wAppIconPaint(app->app_icon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user