The function wIconChangeImageFile now returns an integer value instead of boolean.
Signed-off-by: Rodolfo García Peñas (kix) <[email protected]> --- src/icon.c | 4 ++-- src/icon.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icon.c b/src/icon.c index a8fbc65..560859c 100644 --- a/src/icon.c +++ b/src/icon.c @@ -353,7 +353,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; @@ -362,7 +362,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 58b6cf6..347814b 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); -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
