From fbd9c12cd04e5d26a491506f16077f806c17154e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 18 Jun 2012 11:54:18 +0200 Subject: [PATCH] Do static icon functions The functions wApplicationSaveIconPathFor() and wApplicationExtractDirPackIcon() are now used only in appicon.c and can be static. --- src/appicon.c | 5 +++-- src/appicon.h | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/appicon.c b/src/appicon.c index a2c47d35..ce910dd5 100644 --- a/src/appicon.c +++ b/src/appicon.c @@ -66,11 +66,12 @@ extern WDDomain *WDWindowAttributes; void appIconMouseDown(WObjDescriptor * desc, XEvent * event); static void iconDblClick(WObjDescriptor * desc, XEvent * event); static void iconExpose(WObjDescriptor * desc, XEvent * event); +static void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, char *wm_class); /* This function is used if the application is a .app. It checks if it has an icon in it * like for example /usr/local/GNUstep/Applications/WPrefs.app/WPrefs.tiff */ -void wApplicationExtractDirPackIcon(WScreen * scr, char *path, char *wm_instance, char *wm_class) +static void wApplicationExtractDirPackIcon(WScreen * scr, char *path, char *wm_instance, char *wm_class) { char *iconPath = NULL; char *tmp = NULL; @@ -890,7 +891,7 @@ void appIconMouseDown(WObjDescriptor * desc, XEvent * event) } /* This function save the application icon and store the path in the Dictionary */ -void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, char *wm_class) +static void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, char *wm_class) { WMPropList *dict = WDWindowAttributes->dictionary; WMPropList *adict, *key, *iconk; diff --git a/src/appicon.h b/src/appicon.h index 0785295e..e401696d 100644 --- a/src/appicon.h +++ b/src/appicon.h @@ -81,9 +81,5 @@ void makeAppIconFor(WApplication * wapp); void removeAppIconFor(WApplication * wapp); void save_app_icon(WApplication *wapp); void paint_app_icon(WApplication *wapp); -void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, - char *wm_class); -void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance, - char *wm_class); void wAppIconSave(WAppIcon *aicon); #endif -- 2.11.4.GIT