- fixed dvb scan
[enigma2.git] / lib / gui / elistboxcontent.cpp
index 2f05f5dcbc523865a4b2b0ce85ecd791a6d6e1fc..d3a2e77a6932d489388c1ff33b789765ca25ff6c 100644 (file)
@@ -337,6 +337,10 @@ void eListboxPythonStringContent::paint(gPainter &painter, eWindowStyle &style,
        {
                PyObject *item = PyList_GetItem(m_list, m_cursor); // borrowed reference!
                painter.setFont(fnt);
+
+                       /* the user can supply tuples, in this case the first one will be displayed. */         
+               if (PyTuple_Check(item))
+                       item = PyTuple_GetItem(item, 0);
                
                const char *string = PyString_Check(item) ? PyString_AsString(item) : "<not-a-string>";