diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-10-07 20:15:53 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-10-07 20:15:53 +0000 |
| commit | cc6908402d34d4633d3b27297bdbde3b9a94e403 (patch) | |
| tree | 70012ae36040fd6e26ade044b94e7898ec4d6585 /lib | |
| parent | 54ef04efc3501ce91db852139a820c2b219062f3 (diff) | |
| download | enigma2-cc6908402d34d4633d3b27297bdbde3b9a94e403.tar.gz enigma2-cc6908402d34d4633d3b27297bdbde3b9a94e403.zip | |
add invalidate to eListboxPythonStringContent
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 6 | ||||
| -rw-r--r-- | lib/gui/elistboxcontent.h | 1 | ||||
| -rw-r--r-- | lib/python/Screens/Satconfig.py | 1 |
3 files changed, 8 insertions, 0 deletions
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": |
