1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

Remove call to wIconUpdate() from wAppIconCreate()

Remove the call to wIconUpdate() in wAppIconCreate() and place it in
makeAppIconFor() since wAppIconCreate() is only used in that function
and icon update or icon painting is not icon creation.

Now the function wAppIconCreate() only creates the app_icon.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-10-01 23:39:44 +02:00
committed by Carlos R. Mafra
parent 236c1c5f70
commit ff49393bfa

View File

@@ -155,6 +155,7 @@ void makeAppIconFor(WApplication * wapp)
/* Create the icon */
wapp->app_icon = wAppIconCreate(wapp->main_window_desc);
wIconUpdate(wapp->app_icon->icon);
/* Now, paint the icon */
if (!WFLAGP(wapp->main_window_desc, no_appicon))
@@ -262,7 +263,6 @@ static WAppIcon *wAppIconCreate(WWindow * leader_win)
aicon->icon->core->descriptor.parent = aicon;
AddToStackList(aicon->icon->core);
aicon->icon->show_title = 0;
wIconUpdate(aicon->icon);
return aicon;
}