>From a6dcb8e1cde04aeb2b50913fa106a94c2222ebbc 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:37:20 +0200
Subject: [PATCH 6/9] wAppIconCreateForDockm, changed variable WAppIcon name

The variable "dicon" is now named "aicon", the same name that
the WAppIcon variable used in wAppIconCreate.

Some clean code more, like spaces in function arguments.
---
 src/appicon.c |   40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/appicon.c b/src/appicon.c
index a899d7c..7d110bc 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -106,48 +106,48 @@ void wApplicationExtractDirPackIcon(WScreen * scr, char 
*path, char *wm_instance
        }
 }
 
-WAppIcon *wAppIconCreateForDock(WScreen * scr, char *command, char 
*wm_instance, char *wm_class, int tile)
+WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char 
*wm_instance, char *wm_class, int tile)
 {
-       WAppIcon *dicon;
+       WAppIcon *aicon;
        char *path;
 
-       dicon = wmalloc(sizeof(WAppIcon));
-       wretain(dicon);
-       dicon->yindex = -1;
-       dicon->xindex = -1;
+       aicon = wmalloc(sizeof(WAppIcon));
+       wretain(aicon);
+       aicon->yindex = -1;
+       aicon->xindex = -1;
 
-       add_to_appicon_list(scr, dicon);
+       add_to_appicon_list(scr, aicon);
 
        if (command)
-               dicon->command = wstrdup(command);
+               aicon->command = wstrdup(command);
 
        if (wm_class)
-               dicon->wm_class = wstrdup(wm_class);
+               aicon->wm_class = wstrdup(wm_class);
 
        if (wm_instance)
-               dicon->wm_instance = wstrdup(wm_instance);
+               aicon->wm_instance = wstrdup(wm_instance);
 
        /* Search the icon using instance and class, without default icon */
        path = get_default_icon_filename(scr, wm_instance, wm_class, command, 
False);
 
-       dicon->icon = wIconCreateWithIconFile(scr, path, tile);
+       aicon->icon = wIconCreateWithIconFile(scr, path, tile);
        if (path)
                wfree(path);
 #ifdef XDND
-       wXDNDMakeAwareness(dicon->icon->core->window);
+       wXDNDMakeAwareness(aicon->icon->core->window);
 #endif
 
        /* will be overriden by dock */
-       dicon->icon->core->descriptor.handle_mousedown = appIconMouseDown;
-       dicon->icon->core->descriptor.handle_expose = iconExpose;
-       dicon->icon->core->descriptor.parent_type = WCLASS_APPICON;
-       dicon->icon->core->descriptor.parent = dicon;
-       AddToStackList(dicon->icon->core);
+       aicon->icon->core->descriptor.handle_mousedown = appIconMouseDown;
+       aicon->icon->core->descriptor.handle_expose = iconExpose;
+       aicon->icon->core->descriptor.parent_type = WCLASS_APPICON;
+       aicon->icon->core->descriptor.parent = aicon;
+       AddToStackList(aicon->icon->core);
 
-       return dicon;
+       return aicon;
 }
 
-void makeAppIconFor(WApplication * wapp)
+void makeAppIconFor(WApplication *wapp)
 {
        /* If app_icon, work is done, return */
        if (wapp->app_icon)
@@ -227,7 +227,7 @@ void removeAppIconFor(WApplication * wapp)
                wArrangeIcons(wapp->main_window_desc->screen_ptr, True);
 }
 
-static WAppIcon *wAppIconCreate(WWindow * leader_win)
+static WAppIcon *wAppIconCreate(WWindow *leader_win)
 {
        WAppIcon *aicon;
        WScreen *scr = leader_win->screen_ptr;
-- 
1.7.10.4

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From a6dcb8e1cde04aeb2b50913fa106a94c2222ebbc 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:37:20 +0200
Subject: [PATCH 6/9] wAppIconCreateForDockm, changed variable WAppIcon name

The variable "dicon" is now named "aicon", the same name that
the WAppIcon variable used in wAppIconCreate.

Some clean code more, like spaces in function arguments.
---
 src/appicon.c |   40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/appicon.c b/src/appicon.c
index a899d7c..7d110bc 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -106,48 +106,48 @@ void wApplicationExtractDirPackIcon(WScreen * scr, char *path, char *wm_instance
 	}
 }
 
-WAppIcon *wAppIconCreateForDock(WScreen * scr, char *command, char *wm_instance, char *wm_class, int tile)
+WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance, char *wm_class, int tile)
 {
-	WAppIcon *dicon;
+	WAppIcon *aicon;
 	char *path;
 
-	dicon = wmalloc(sizeof(WAppIcon));
-	wretain(dicon);
-	dicon->yindex = -1;
-	dicon->xindex = -1;
+	aicon = wmalloc(sizeof(WAppIcon));
+	wretain(aicon);
+	aicon->yindex = -1;
+	aicon->xindex = -1;
 
-	add_to_appicon_list(scr, dicon);
+	add_to_appicon_list(scr, aicon);
 
 	if (command)
-		dicon->command = wstrdup(command);
+		aicon->command = wstrdup(command);
 
 	if (wm_class)
-		dicon->wm_class = wstrdup(wm_class);
+		aicon->wm_class = wstrdup(wm_class);
 
 	if (wm_instance)
-		dicon->wm_instance = wstrdup(wm_instance);
+		aicon->wm_instance = wstrdup(wm_instance);
 
 	/* Search the icon using instance and class, without default icon */
 	path = get_default_icon_filename(scr, wm_instance, wm_class, command, False);
 
-	dicon->icon = wIconCreateWithIconFile(scr, path, tile);
+	aicon->icon = wIconCreateWithIconFile(scr, path, tile);
 	if (path)
 		wfree(path);
 #ifdef XDND
-	wXDNDMakeAwareness(dicon->icon->core->window);
+	wXDNDMakeAwareness(aicon->icon->core->window);
 #endif
 
 	/* will be overriden by dock */
-	dicon->icon->core->descriptor.handle_mousedown = appIconMouseDown;
-	dicon->icon->core->descriptor.handle_expose = iconExpose;
-	dicon->icon->core->descriptor.parent_type = WCLASS_APPICON;
-	dicon->icon->core->descriptor.parent = dicon;
-	AddToStackList(dicon->icon->core);
+	aicon->icon->core->descriptor.handle_mousedown = appIconMouseDown;
+	aicon->icon->core->descriptor.handle_expose = iconExpose;
+	aicon->icon->core->descriptor.parent_type = WCLASS_APPICON;
+	aicon->icon->core->descriptor.parent = aicon;
+	AddToStackList(aicon->icon->core);
 
-	return dicon;
+	return aicon;
 }
 
-void makeAppIconFor(WApplication * wapp)
+void makeAppIconFor(WApplication *wapp)
 {
 	/* If app_icon, work is done, return */
 	if (wapp->app_icon)
@@ -227,7 +227,7 @@ void removeAppIconFor(WApplication * wapp)
 		wArrangeIcons(wapp->main_window_desc->screen_ptr, True);
 }
 
-static WAppIcon *wAppIconCreate(WWindow * leader_win)
+static WAppIcon *wAppIconCreate(WWindow *leader_win)
 {
 	WAppIcon *aicon;
 	WScreen *scr = leader_win->screen_ptr;
-- 
1.7.10.4

Reply via email to