From: Christophe CURIS <[email protected]>
Signed-off-by: Christophe CURIS <[email protected]>
---
WPrefs.app/WPrefs.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c
index de59cdf..31192aa 100644
--- a/WPrefs.app/WPrefs.c
+++ b/WPrefs.app/WPrefs.c
@@ -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)
{
WMPixmap *icon;
- WMPixmap *icon2;
RColor color;
char *iconPath;
@@ -469,18 +463,7 @@ void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr,
const char *file)
icon = NULL;
}
- if (icon) {
- icon2 = makeTitledIcon(icon);
- if (icon)
- WMReleasePixmap(icon);
- } else {
- icon2 = NULL;
- }
-
- WMSetButtonImage(bPtr, icon2);
-
- if (icon2)
- WMReleasePixmap(icon2);
+ WMSetButtonImage(bPtr, icon);
color.red = 0xff;
color.green = 0xff;
--
1.8.5.3
--
To unsubscribe, send mail to [email protected].