[PATCH 3/7] Remove unused argument in save_appicon

Rodolfo García Peñas (kix) <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
The argument dock is always True, so can be removed.

Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>
---
 src/appicon.c | 6 +++---
 src/appicon.h | 2 +-
 src/dock.c    | 8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/appicon.c b/src/appicon.c
index 2a9db5c..9028d0e 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -433,14 +433,14 @@ void wAppIconPaint(WAppIcon *aicon)
 }
 
 /* Save the application icon, if it's a dockapp then use it with dock = True */
-void save_appicon(WAppIcon *aicon, Bool dock)
+void save_appicon(WAppIcon *aicon)
 {
 	char *path;
 
 	if (!aicon)
 		return;
 
-	if (dock && (!aicon->docked || aicon->attracted))
+	if (!aicon->docked || aicon->attracted)
 		return;
 
 	path = wIconStore(aicon->icon);
@@ -1190,7 +1190,7 @@ static void create_appicon_from_dock(WWindow *wwin, WApplication *wapp, Window m
 
 		/* Paint it */
 		wAppIconPaint(wapp->app_icon);
-		save_appicon(wapp->app_icon, True);
+		save_appicon(wapp->app_icon);
 	}
 }
 
diff --git a/src/appicon.h b/src/appicon.h
index eb1904b..44913b8 100644
--- a/src/appicon.h
+++ b/src/appicon.h
@@ -78,7 +78,7 @@ void wAppIconPaint(WAppIcon *aicon);
 void wAppIconMove(WAppIcon *aicon, int x, int y);
 void create_appicon_for_application(WApplication *wapp, WWindow *wwin);
 void removeAppIconFor(WApplication * wapp);
-void save_appicon(WAppIcon *aicon, Bool dock);
+void save_appicon(WAppIcon *aicon);
 void paint_app_icon(WApplication *wapp);
 void unpaint_app_icon(WApplication *wapp);
 void wApplicationExtractDirPackIcon(const char *path, const char *wm_instance,
diff --git a/src/dock.c b/src/dock.c
index 99c137a..fce3f5b 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -583,7 +583,7 @@ static void keepIconsCallback(WMenu *menu, WMenuEntry *entry)
 				wAppIconPaint(aicon);
 			}
 		}
-		save_appicon(aicon, True);
+		save_appicon(aicon);
 	}
 	WMFreeArray(selectedIcons);
 }
@@ -1445,7 +1445,7 @@ static void dockIconPaint(WAppIcon *btn)
 		wDrawerIconPaint(btn);
 	} else {
 		wAppIconPaint(btn);
-		save_appicon(btn, True);
+		save_appicon(btn);
 	}
 }
 
@@ -2219,7 +2219,7 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y, Bool update_icon
 	wAppIconPaint(icon);
 
 	/* Save it */
-	save_appicon(icon, True);
+	save_appicon(icon);
 
 	if (wPreferences.auto_arrange_icons)
 		wArrangeIcons(dock->screen_ptr, True);
@@ -2344,7 +2344,7 @@ Bool wDockMoveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x, i
 			icon->icon->shadowed = 0;
 			update_icon = True;
 		}
-		save_appicon(icon, True);
+		save_appicon(icon);
 	}
 
 	if (src->auto_collapse || src->auto_raise_lower)
-- 
2.5.0


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.