From: Andreas Monzner Date: Fri, 7 Oct 2005 20:15:53 +0000 (+0000) Subject: add invalidate to eListboxPythonStringContent X-Git-Tag: 2.6.0~5520 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/cc6908402d34d4633d3b27297bdbde3b9a94e403 add invalidate to eListboxPythonStringContent --- diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index f94765ef..63d94b09 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -384,6 +384,12 @@ void eListboxPythonStringContent::invalidateEntry(int index) m_listbox->entryChanged(index); } +void eListboxPythonStringContent::invalidate() +{ + if (m_listbox) + m_listbox->entryReset(); +} + ////////////////////////////////////// void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected) diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index cfd0f155..11a9d080 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -84,6 +84,7 @@ public: PyObject *getCurrentSelection(); int getCurrentSelectionIndex() { return m_cursor; } void invalidateEntry(int index); + void invalidate(); #ifndef SWIG protected: void cursorHome(); diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index 09acebdd..6313fb7f 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -49,6 +49,7 @@ class NimSetup(Screen): #??? self["config"].list = self.list self["config"].l.setList(self.list) + self["config"].l.invalidate() def newConfig(self): if self["config"].getCurrent()[0] == "Diseqcmode":