mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 05:55:45 +01:00
Arguments not used in SetButtonAlphaImage
The arguments for SetButtonAlphaImage() are not used, so can be removed to avoid compiler warnings. This patch removes these arguments, so the code in SetButtonAlphaImage(), not used, can be removed too.
This commit is contained in:
committed by
Carlos R. Mafra
parent
0e01e69205
commit
3919363aa3
@@ -448,7 +448,7 @@ static WMPixmap *makeTitledIcon(WMPixmap *icon)
|
||||
return WMRetainPixmap(icon);
|
||||
}
|
||||
|
||||
void SetButtonAlphaImage(WMScreen * scr, WMButton * bPtr, const char *file, const char *title1, const char *title2)
|
||||
void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file)
|
||||
{
|
||||
WMPixmap *icon;
|
||||
WMPixmap *icon2;
|
||||
@@ -517,26 +517,13 @@ void AddSection(Panel * panel, const char *iconFile)
|
||||
WMHangData(bPtr, panel);
|
||||
|
||||
WMSetBalloonTextForView(((PanelRec *) panel)->description, WMWidgetView(bPtr));
|
||||
|
||||
{
|
||||
char *t1, *t2;
|
||||
|
||||
t1 = wstrdup(((PanelRec *) panel)->sectionName);
|
||||
t2 = strchr(t1, ' ');
|
||||
if (t2) {
|
||||
*t2 = 0;
|
||||
t2++;
|
||||
}
|
||||
SetButtonAlphaImage(WMWidgetScreen(bPtr), bPtr, iconFile, t1, t2);
|
||||
wfree(t1);
|
||||
}
|
||||
SetButtonAlphaImage(WMWidgetScreen(bPtr), bPtr, iconFile);
|
||||
WMMapWidget(bPtr);
|
||||
|
||||
WPrefs.sectionB[WPrefs.sectionCount] = bPtr;
|
||||
|
||||
if (WPrefs.sectionCount > 0) {
|
||||
if (WPrefs.sectionCount > 0)
|
||||
WMGroupButtons(WPrefs.sectionB[0], bPtr);
|
||||
}
|
||||
|
||||
WPrefs.sectionCount++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user