File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,11 @@ void setLabel(void)
40
40
double maxvolume=double (atoi (dockWindow->globalLib ->LFSTK_oneLiner (" amixer get Master|grep \" Limits\" |awk '{print $NF}'" ).c_str ()));
41
41
int value=(int )(((double )vsb->LFSTK_getValue ()/(double )maxvolume)*100.0 );
42
42
43
- // int value=(int)(((double)vsb->LFSTK_getValue()/64.0)*100.0);
44
43
sprintf (label," Vol %i%%" ,value);
45
44
volumeButton->LFSTK_setLabel ((const char *)label);
46
45
setIcon ();
47
46
}
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();
55
47
56
- */
57
48
int getAlsaVolume (bool setvol,int volume)
58
49
{
59
50
long value=-1 ;
@@ -164,21 +155,7 @@ void updateSlider(void)
164
155
XFlush (apc->display );
165
156
}
166
157
}
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
- }
180
158
181
- */
182
159
bool volExitCB (LFSTK_gadgetClass*p,void * ud)
183
160
{
184
161
geometryStruct geom2;
You can’t perform that action at this time.
0 commit comments