>From 596e0697e618b01d701e5c9d82c7c2dddb8f85ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 1 Oct 2012 23:39:44 +0200
Subject: [PATCH 7/9] wAppIconCreate moved to makeAppIconFor

In wAppIconCreate, the icon update is moved out, to the function
makeAppIconFor, because wAppIconCreate is only used in that function
and icon update or icon painting is not icon creation. Now, the function
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 7d110bc..b1948bb 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;
 }
-- 
1.7.10.4

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From 596e0697e618b01d701e5c9d82c7c2dddb8f85ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 1 Oct 2012 23:39:44 +0200
Subject: [PATCH 7/9] wAppIconCreate moved to makeAppIconFor

In wAppIconCreate, the icon update is moved out, to the function
makeAppIconFor, because wAppIconCreate is only used in that function
and icon update or icon painting is not icon creation. Now, the function
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 7d110bc..b1948bb 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;
 }
-- 
1.7.10.4

Reply via email to