1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 10:22:34 +01:00

wIconChangeImageFile returns int

The function wIconChangeImageFile now returns an integer value
instead of boolean.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2013-09-28 15:33:50 +02:00
committed by Carlos R. Mafra
parent 45bfc1d1c5
commit d6fe27af15
2 changed files with 3 additions and 3 deletions

View File

@@ -351,7 +351,7 @@ RImage *wIconValidateIconSize(RImage *icon, int max_size)
return icon; return icon;
} }
Bool wIconChangeImageFile(WIcon *icon, const char *file) int wIconChangeImageFile(WIcon *icon, const char *file)
{ {
WScreen *scr = icon->core->screen_ptr; WScreen *scr = icon->core->screen_ptr;
char *path; char *path;
@@ -360,7 +360,7 @@ Bool wIconChangeImageFile(WIcon *icon, const char *file)
/* If no new image, don't do nothing */ /* If no new image, don't do nothing */
if (!file) if (!file)
return True; return 1;
/* Find the new image */ /* Find the new image */
path = FindImage(wPreferences.icon_path, file); path = FindImage(wPreferences.icon_path, file);

View File

@@ -64,7 +64,7 @@ void wIconSelect(WIcon *icon);
void wIconChangeTitle(WIcon *icon, WWindow *wwin); void wIconChangeTitle(WIcon *icon, WWindow *wwin);
void update_icon_pixmap(WIcon *icon); void update_icon_pixmap(WIcon *icon);
Bool wIconChangeImageFile(WIcon *icon, const char *file); int wIconChangeImageFile(WIcon *icon, const char *file);
RImage *wIconValidateIconSize(RImage *icon, int max_size); RImage *wIconValidateIconSize(RImage *icon, int max_size);
RImage *get_rimage_icon_from_wm_hints(WIcon *icon); RImage *get_rimage_icon_from_wm_hints(WIcon *icon);