diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-27 00:27:32 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-27 00:27:32 +0000 |
| commit | 9b6b96172d1d20d9daf3c11bc5f0222f487d53d7 (patch) | |
| tree | 8d40908a344ef075515096eb6e7de2c3743553b0 /lib/gui/elistboxcontent.cpp | |
| parent | 24f6e51878555666f9110839254b5cf914048248 (diff) | |
| download | enigma2-9b6b96172d1d20d9daf3c11bc5f0222f487d53d7.tar.gz enigma2-9b6b96172d1d20d9daf3c11bc5f0222f487d53d7.zip | |
- add positioner plugin (just basic gui atm)
- some changes to ConfigSlider (is now called "configSlider" and has a step width and max value now)
- add BER/SNR/AGC display to the manual single transponder scan (just gui, no functionality yet)
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 2b3c0fcd..f5ae2b38 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -476,12 +476,14 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, } else if (!strcmp(atype, "slider")) { PyObject *pvalue = PyTuple_GET_ITEM(value, 1); + PyObject *psize = PyTuple_GET_ITEM(value, 2); /* convert value to Long. fallback to -1 on error. */ int value = (pvalue && PyInt_Check(pvalue)) ? PyInt_AsLong(pvalue) : -1; + int size = (pvalue && PyInt_Check(psize)) ? PyInt_AsLong(psize) : 100; /* calc. slider length */ - int width = item_right.width() * value / 100; + int width = item_right.width() * value / size; int height = item_right.height(); |
