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 f94765ef6592c43bccef852f0d6648c6ab763bb4..63d94b09c3ac559ba63864766da3ad6b2645727c 100644 (file)
@@ -384,6 +384,12 @@ void eListboxPythonStringContent::invalidateEntry(int index)
                m_listbox->entryChanged(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)
 //////////////////////////////////////
 
 void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected)
index cfd0f15535b8f24d9f1bdc37e6a8ea9ebb71d29b..11a9d080f5525cea7af91fd88b360eb4c0090c2f 100644 (file)
@@ -84,6 +84,7 @@ public:
        PyObject *getCurrentSelection();
        int getCurrentSelectionIndex() { return m_cursor; }
        void invalidateEntry(int index);
        PyObject *getCurrentSelection();
        int getCurrentSelectionIndex() { return m_cursor; }
        void invalidateEntry(int index);
+       void invalidate();
 #ifndef SWIG
 protected:
        void cursorHome();
 #ifndef SWIG
 protected:
        void cursorHome();
index 09acebdd3732da8bad18834799d9a806c6ec72ac..6313fb7fea8c9a7110d646af1437dc4824122854 100644 (file)
@@ -49,6 +49,7 @@ class NimSetup(Screen):
                #???
                self["config"].list = self.list
                self["config"].l.setList(self.list)
                #???
                self["config"].list = self.list
                self["config"].l.setList(self.list)
+               self["config"].l.invalidate()
                
        def newConfig(self):    
                if self["config"].getCurrent()[0] == "Diseqcmode":
                
        def newConfig(self):    
                if self["config"].getCurrent()[0] == "Diseqcmode":