aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-06-04 15:20:29 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2010-06-04 15:20:29 +0200
commit45c627a80e5387e29aa9c7ca071d310cd3a7e823 (patch)
tree3bfaa3d0cb3f9d7bb871231af40e54a157f5ff44 /lib
parent68c456f12b1e72cf982997d4d528281734021a85 (diff)
parent18e9562c55f0ee01ccc74d48018fd6b67f20f19c (diff)
downloadenigma2-45c627a80e5387e29aa9c7ca071d310cd3a7e823.tar.gz
enigma2-45c627a80e5387e29aa9c7ca071d310cd3a7e823.zip
Merge branch 'experimental' of git.opendreambox.org:/git/enigma2 into experimental
Diffstat (limited to 'lib')
-rw-r--r--lib/base/ebase.cpp5
-rw-r--r--lib/gui/elistboxcontent.cpp7
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp
index caccb391..c84f28b8 100644
--- a/lib/base/ebase.cpp
+++ b/lib/base/ebase.cpp
@@ -243,14 +243,9 @@ int eMainloop::processOneEvent(unsigned int twisted_timeout, PyObject **res, ePy
if (this == eApp)
{
- gOpcode op;
- op.dc = 0;
- op.opcode = gOpcode::flush;
- gRC::getInstance()->submit(op);
Py_BEGIN_ALLOW_THREADS
ret = ::poll(pfd, fdcount, poll_timeout);
Py_END_ALLOW_THREADS
-
} else
ret = ::poll(pfd, fdcount, poll_timeout);
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 7bb84c3d..43fbc594 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -343,7 +343,6 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
if (PyTuple_Check(item))
{
/* handle left part. get item from tuple, convert to string, display. */
-
text = PyTuple_GET_ITEM(item, 0);
text = PyObject_Str(text); /* creates a new object - old object was borrowed! */
const char *string = (text && PyString_Check(text)) ? PyString_AsString(text) : "<not-a-string>";
@@ -357,7 +356,9 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
int value_alignment_left = !*string;
/* now, handle the value. get 2nd part from tuple*/
- value = PyTuple_GET_ITEM(item, 1);
+ if (PyTuple_Size(item) >= 2) // when no 2nd entry is in tuple this is a non selectable entry without config part
+ value = PyTuple_GET_ITEM(item, 1);
+
if (value)
{
ePyObject args = PyTuple_New(1);
@@ -468,7 +469,7 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
}
}
/* type is borrowed */
- } else
+ } else if (value)
eWarning("eListboxPythonConfigContent: second value of tuple is not a tuple.");
if (value)
Py_DECREF(value);