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:
committed by
Carlos R. Mafra
parent
236c1c5f70
commit
ff49393bfa
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user