wAppIconSave is now void

The Bool value is not used, therefore it suffices to return void.

wAppIconChangeImage is removed from appicon.h, because it is not implemented.
Small code cleanup for wAppIconCreateForDock at appicon.h.
This commit is contained in:
Rodolfo García Peñas (kix) authored and Carlos R. Mafra committed 2012-06-18 22:33:10 +01:00
1 parent f44944c18d
commit de68ee6f1b
2 files changed
+8 -9

No files matched your search

+5 -4
View File
@@ -396,20 +396,21 @@ void wAppIconPaint(WAppIcon * aicon)
0, 0, wPreferences.icon_size, wPreferences.icon_size); 0, 0, wPreferences.icon_size, wPreferences.icon_size);
} }
Bool wAppIconSave(WAppIcon *aicon) void wAppIconSave(WAppIcon *aicon)
{ {
char *path; char *path;
if (!aicon->docked || aicon->attracted) return True; if (!aicon->docked || aicon->attracted)
return;
path = wIconStore(aicon->icon); path = wIconStore(aicon->icon);
if (!path) if (!path)
return False; return;
wApplicationSaveIconPathFor(path, aicon->wm_instance, aicon->wm_class); wApplicationSaveIconPathFor(path, aicon->wm_instance, aicon->wm_class);
wfree(path); wfree(path);
return True; return;
} }
#define canBeDocked(wwin) ((wwin) && ((wwin)->wm_class||(wwin)->wm_instance)) #define canBeDocked(wwin) ((wwin) && ((wwin)->wm_class||(wwin)->wm_instance))
+3 -5
View File
@@ -70,8 +70,8 @@ typedef struct WAppIcon {
} WAppIcon; } WAppIcon;
WAppIcon *wAppIconCreate(WWindow *leader_win); WAppIcon *wAppIconCreate(WWindow *leader_win);
WAppIcon * wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance, WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance,
char *wm_class, int tile); char *wm_class, int tile);
void wAppIconDestroy(WAppIcon *aicon); void wAppIconDestroy(WAppIcon *aicon);
void wAppIconPaint(WAppIcon *aicon); void wAppIconPaint(WAppIcon *aicon);
@@ -84,7 +84,5 @@ void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance,
char *wm_class); char *wm_class);
void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance, void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance,
char *wm_class); char *wm_class);
void wAppIconSave(WAppIcon *aicon);
Bool wAppIconChangeImage(WAppIcon *icon, char *file);
Bool wAppIconSave(WAppIcon *aicon);
#endif #endif