mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 07:02:30 +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:
committed by
Carlos R. Mafra
parent
45bfc1d1c5
commit
d6fe27af15
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user