mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 21:34:17 +01:00
WINGs: remove dead code from 'loadPixmaps'
It seems the code had the possibility to load a default icon, probably to be used on the windows if the main program does not provide any. This code however have never been enabled, probably because it is better to not provide an icon and let the window manager use its own. This patch then removes that dead code, but keeps the image as part of the WINGs resource for the case where an application would have been using it. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
e09df40f78
commit
59106395c0
@@ -363,10 +363,7 @@ static WMPixmap *makePixmap(W_Screen * sPtr, char **data, int width, int height,
|
||||
}
|
||||
|
||||
#define T_WINGS_IMAGES_FILE RESOURCE_PATH"/Images.tiff"
|
||||
#define T_DEFAULT_OBJECT_ICON_FILE RESOURCE_PATH"/defaultIcon.tiff"
|
||||
|
||||
#define X_WINGS_IMAGES_FILE RESOURCE_PATH"/Images.xpm"
|
||||
#define X_DEFAULT_OBJECT_ICON_FILE RESOURCE_PATH"/defaultIcon.xpm"
|
||||
|
||||
static Bool loadPixmaps(WMScreen * scr)
|
||||
{
|
||||
@@ -474,16 +471,6 @@ static Bool loadPixmaps(WMScreen * scr)
|
||||
|
||||
RReleaseImage(image);
|
||||
|
||||
#if 0
|
||||
scr->defaultObjectIcon = WMCreatePixmapFromFile(scr, T_DEFAULT_OBJECT_ICON_FILE);
|
||||
if (!scr->defaultObjectIcon) {
|
||||
scr->defaultObjectIcon = WMCreatePixmapFromFile(scr, X_DEFAULT_OBJECT_ICON_FILE);
|
||||
}
|
||||
if (!scr->defaultObjectIcon) {
|
||||
wwarning("WINGs: could not load default icon file");
|
||||
return False;
|
||||
}
|
||||
#endif
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user