1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

get_default_image_path unused argument

The function get_default_image_path has the WScreen argument that
is not used, so can be removed.

The function could be static, but perhaps is interesting leave it
as public.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-10 19:25:56 +01:00
committed by Carlos R. Mafra
parent 658597b889
commit f38e5e40c8
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ void wDefaultFillAttributes(char *instance, char *class,
WWindowAttributes *attr, WWindowAttributes *mask,
Bool useGlobalDefault);
char *get_default_image_path(WScreen *scr);
char *get_default_image_path(void);
RImage *get_default_image(WScreen *scr);
char *wDefaultGetIconFile(char *instance, char *class, Bool default_icon);

View File

@@ -413,7 +413,7 @@ char *get_icon_filename(WScreen *scr, char *winstance, char *wclass, char *comma
}
if (!file_path && default_icon)
file_path = get_default_image_path(scr);
file_path = get_default_image_path();
return file_path;
}
@@ -438,7 +438,7 @@ RImage *get_rimage_from_file(WScreen *scr, char *file_name, int max_size)
/* This function returns the default icon's full path
* If the path for an icon is not found, returns NULL */
char *get_default_image_path(WScreen *scr)
char *get_default_image_path(void)
{
char *path = NULL, *file = NULL;
@@ -457,7 +457,7 @@ RImage *get_default_image(WScreen *scr)
char *path = NULL;
/* Get the filename full path */
path = get_default_image_path(scr);
path = get_default_image_path();
if (!path)
return NULL;