Skip to content

Commit 8db2b45

Browse files
committed
fixed slider
1 parent 1b16db7 commit 8db2b45

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

LFSDock/LFSDock/src/slider.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,11 @@ void setLabel(void)
4040
double maxvolume=double(atoi(dockWindow->globalLib->LFSTK_oneLiner("amixer get Master|grep \"Limits\"|awk '{print $NF}'").c_str()));
4141
int value=(int)(((double)vsb->LFSTK_getValue()/(double)maxvolume)*100.0);
4242

43-
//int value=(int)(((double)vsb->LFSTK_getValue()/64.0)*100.0);
4443
sprintf(label,"Vol %i%%",value);
4544
volumeButton->LFSTK_setLabel((const char*)label);
4645
setIcon();
4746
}
48-
/*
49-
double maxvolume=double(atoi(mainwind->globalLib->LFSTK_oneLiner("amixer get Master|grep \"Limits\"|awk '{print $NF}'").c_str()));
50-
int value=(int)(((double)vsb->LFSTK_getValue()/(double)maxvolume)*100.0);
51-
sprintf(label,"Vol %i%%",value);
52-
volumeButton->LFSTK_setLabel(label);
53-
setIcon();
54-
volumeButton->LFSTK_clearWindow();
5547

56-
*/
5748
int getAlsaVolume(bool setvol,int volume)
5849
{
5950
long value=-1;
@@ -164,21 +155,7 @@ void updateSlider(void)
164155
XFlush(apc->display);
165156
}
166157
}
167-
/*
168-
void updateSlider(void)
169-
{
170-
int volume;
171-
172-
volume=getAlsaVolume(false,-1);
173-
if(oldVolVal!=volume)
174-
{
175-
vsb->LFSTK_setValue(volume);
176-
oldVolVal=vsb->LFSTK_getValue();
177-
setLabel();
178-
}
179-
}
180158

181-
*/
182159
bool volExitCB(LFSTK_gadgetClass*p,void* ud)
183160
{
184161
geometryStruct geom2;

0 commit comments

Comments
 (0)