diff --git a/src/icon.c b/src/icon.c index 6efc4544..c3ab64ad 100644 --- a/src/icon.c +++ b/src/icon.c @@ -351,7 +351,7 @@ RImage *wIconValidateIconSize(RImage *icon, int max_size) return icon; } -Bool wIconChangeImageFile(WIcon *icon, const char *file) +int wIconChangeImageFile(WIcon *icon, const char *file) { WScreen *scr = icon->core->screen_ptr; char *path; @@ -360,7 +360,7 @@ Bool wIconChangeImageFile(WIcon *icon, const char *file) /* If no new image, don't do nothing */ if (!file) - return True; + return 1; /* Find the new image */ path = FindImage(wPreferences.icon_path, file); diff --git a/src/icon.h b/src/icon.h index 58b6cf6f..347814be 100644 --- a/src/icon.h +++ b/src/icon.h @@ -64,7 +64,7 @@ void wIconSelect(WIcon *icon); void wIconChangeTitle(WIcon *icon, WWindow *wwin); 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 *get_rimage_icon_from_wm_hints(WIcon *icon);