From: Rodolfo García Peñas (kix) Date: Mon, 1 Oct 2012 21:39:44 +0000 (+0200) Subject: Remove call to wIconUpdate() from wAppIconCreate() X-Git-Tag: wmaker-0.95.4~112 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/ff49393bfaa1c13135f287717b8297caf9c6e75a 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. --- diff --git a/src/appicon.c b/src/appicon.c index a899d7c5..03e006c7 100644 --- a/src/appicon.c +++ b/src/appicon.c @@ -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; }