mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
WPrefs: Completely removed function 'makeTitledIcon' that did nothing
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
aa890c8868
commit
c13236c2e6
@@ -443,15 +443,9 @@ void CreateImages(WMScreen *scr, RContext *rc, RImage *xis, const char *file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static WMPixmap *makeTitledIcon(WMPixmap *icon)
|
|
||||||
{
|
|
||||||
return WMRetainPixmap(icon);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file)
|
void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file)
|
||||||
{
|
{
|
||||||
WMPixmap *icon;
|
WMPixmap *icon;
|
||||||
WMPixmap *icon2;
|
|
||||||
RColor color;
|
RColor color;
|
||||||
char *iconPath;
|
char *iconPath;
|
||||||
|
|
||||||
@@ -469,18 +463,7 @@ void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file)
|
|||||||
icon = NULL;
|
icon = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (icon) {
|
WMSetButtonImage(bPtr, icon);
|
||||||
icon2 = makeTitledIcon(icon);
|
|
||||||
if (icon)
|
|
||||||
WMReleasePixmap(icon);
|
|
||||||
} else {
|
|
||||||
icon2 = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
WMSetButtonImage(bPtr, icon2);
|
|
||||||
|
|
||||||
if (icon2)
|
|
||||||
WMReleasePixmap(icon2);
|
|
||||||
|
|
||||||
color.red = 0xff;
|
color.red = 0xff;
|
||||||
color.green = 0xff;
|
color.green = 0xff;
|
||||||
|
|||||||
Reference in New Issue
Block a user