aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-27 00:27:32 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-27 00:27:32 +0000
commit9b6b96172d1d20d9daf3c11bc5f0222f487d53d7 (patch)
tree8d40908a344ef075515096eb6e7de2c3743553b0 /lib/gui/elistboxcontent.cpp
parent24f6e51878555666f9110839254b5cf914048248 (diff)
downloadenigma2-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.cpp4
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();