git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
transponder info: display e.g. "Astra (19.2E)" instead of "192"
[enigma2.git]
/
lib
/
gui
/
elistboxcontent.cpp
diff --git
a/lib/gui/elistboxcontent.cpp
b/lib/gui/elistboxcontent.cpp
index 97e2cc67787fe53e65a2fd782eba594df2d1183e..ba0794e73ccb416fe85b22aab90e06e99f705ed1 100644
(file)
--- a/
lib/gui/elistboxcontent.cpp
+++ b/
lib/gui/elistboxcontent.cpp
@@
-501,6
+501,7
@@
eListboxPythonMultiContent::~eListboxPythonMultiContent()
{
Py_XDECREF(m_buildFunc);
Py_XDECREF(m_selectableFunc);
{
Py_XDECREF(m_buildFunc);
Py_XDECREF(m_selectableFunc);
+ Py_XDECREF(m_template);
}
void eListboxPythonMultiContent::setSelectionClip(eRect &rect, bool update)
}
void eListboxPythonMultiContent::setSelectionClip(eRect &rect, bool update)
@@
-640,7
+641,8
@@
static ePyObject lookupColor(ePyObject color, ePyObject data)
if ((icolor & 0xFF000000) == 0xFF000000)
{
int index = icolor & 0xFFFFFF;
if ((icolor & 0xFF000000) == 0xFF000000)
{
int index = icolor & 0xFFFFFF;
- eDebug("[eListboxPythonMultiContent] template color index: %d", index);
+ if (PyTuple_GetItem(data, index) == Py_None)
+ return ePyObject();
return PyTuple_GetItem(data, index);
}
return PyTuple_GetItem(data, index);
}
@@
-1158,5
+1160,7
@@
void eListboxPythonMultiContent::entryRemoved(int idx)
void eListboxPythonMultiContent::setTemplate(ePyObject tmplate)
{
void eListboxPythonMultiContent::setTemplate(ePyObject tmplate)
{
+ Py_XDECREF(m_template);
m_template = tmplate;
m_template = tmplate;
+ Py_XINCREF(m_template);
}
}