1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +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:
Rodolfo García Peñas (kix)
2012-11-14 19:53:04 +01:00
committed by Carlos R. Mafra
parent faa74a14b1
commit 522d84b0ef
6 changed files with 37 additions and 33 deletions

View File

@@ -151,7 +151,7 @@ void makeAppIconFor(WApplication *wapp)
/* Create the icon */
wapp->app_icon = wAppIconCreate(wapp->main_window_desc);
wIconUpdate(wapp->app_icon->icon);
wIconUpdate(wapp->app_icon->icon, NULL);
/* Now, paint the icon */
if (!WFLAGP(wapp->main_window_desc, no_appicon))
@@ -256,7 +256,7 @@ void removeAppIconFor(WApplication *wapp)
wapp->app_icon->icon->icon_win = None;
/* Update the icon images */
wIconUpdate(wapp->app_icon->icon);
wIconUpdate(wapp->app_icon->icon, NULL);
/* Paint it */
wAppIconPaint(wapp->app_icon);
@@ -991,7 +991,7 @@ void create_appicon_from_dock(WWindow *wwin, WApplication *wapp, Window main_win
wapp->app_icon->icon->icon_win = mainw->wm_hints->icon_window;
/* Update the icon images */
wIconUpdate(wapp->app_icon->icon);
wIconUpdate(wapp->app_icon->icon, NULL);
/* Paint it */
wAppIconPaint(wapp->app_icon);