X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b3135c06dd527e0ed65b6ffa921f830132f7d8b9..9ab35dd09351dbf16a80680204bf1b60b7b01458:/lib/python/Components/Sources/List.py diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py index 26c68ab5..6f0670a1 100644 --- a/lib/python/Components/Sources/List.py +++ b/lib/python/Components/Sources/List.py @@ -27,8 +27,12 @@ to generate HTML.""" def entry_changed(self, index): if not self.disable_callbacks: - self.downstream_elements.entry_changed(self, index) - + self.downstream_elements.entry_changed(index) + + def modifyEntry(self, index, data): + self.__list[index] = data + self.entry_changed(index) + def count(self): return len(self.__list) @@ -36,6 +40,11 @@ to generate HTML.""" if self.disable_callbacks: return + # update all non-master targets + for x in self.downstream_elements: + if x is not self.master: + x.index = index + for x in self.onSelectionChanged: x() @@ -82,8 +91,9 @@ to generate HTML.""" return self.__style def setStyle(self, style): - self.__style = style - self.changed((self.CHANGED_SPECIFIC, "style")) + if self.__style != style: + self.__style = style + self.changed((self.CHANGED_SPECIFIC, "style")) style = property(getStyle, setStyle)