add invalidate to eListboxPythonStringContent
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 7 Oct 2005 20:15:53 +0000 (20:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 7 Oct 2005 20:15:53 +0000 (20:15 +0000)
lib/gui/elistboxcontent.cpp
lib/gui/elistboxcontent.h
lib/python/Screens/Satconfig.py

index f94765e..63d94b0 100644 (file)
@@ -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)
index cfd0f15..11a9d08 100644 (file)
@@ -84,6 +84,7 @@ public:
        PyObject *getCurrentSelection();
        int getCurrentSelectionIndex() { return m_cursor; }
        void invalidateEntry(int index);
+       void invalidate();
 #ifndef SWIG
 protected:
        void cursorHome();
index 09acebd..6313fb7 100644 (file)
@@ -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":