1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

Do static icon functions

The functions wApplicationSaveIconPathFor() and wApplicationExtractDirPackIcon()
are now used only in appicon.c and can be static.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-06-18 11:54:18 +02:00
committed by Carlos R. Mafra
parent e3b9026532
commit fbd9c12cd0
2 changed files with 3 additions and 6 deletions

View File

@@ -66,11 +66,12 @@ extern WDDomain *WDWindowAttributes;
void appIconMouseDown(WObjDescriptor * desc, XEvent * event); void appIconMouseDown(WObjDescriptor * desc, XEvent * event);
static void iconDblClick(WObjDescriptor * desc, XEvent * event); static void iconDblClick(WObjDescriptor * desc, XEvent * event);
static void iconExpose(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 /* 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 * 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 *iconPath = NULL;
char *tmp = 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 */ /* 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 *dict = WDWindowAttributes->dictionary;
WMPropList *adict, *key, *iconk; WMPropList *adict, *key, *iconk;

View File

@@ -81,9 +81,5 @@ void makeAppIconFor(WApplication * wapp);
void removeAppIconFor(WApplication * wapp); void removeAppIconFor(WApplication * wapp);
void save_app_icon(WApplication *wapp); void save_app_icon(WApplication *wapp);
void paint_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); void wAppIconSave(WAppIcon *aicon);
#endif #endif