From ff49393bfaa1c13135f287717b8297caf9c6e75a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 1 Oct 2012 23:39:44 +0200 Subject: [PATCH] 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. --- src/appicon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.4.GIT