git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move the movie selector to the currently playing movie
[enigma2.git]
/
lib
/
python
/
Components
/
ServiceList.py
diff --git
a/lib/python/Components/ServiceList.py
b/lib/python/Components/ServiceList.py
index d008c475682ea29a51f79a69c72113b75374d4ee..4c10c6604f1a0d89982f2eefc3ba46dec5414bc9 100644
(file)
--- a/
lib/python/Components/ServiceList.py
+++ b/
lib/python/Components/ServiceList.py
@@
-43,6
+43,12
@@
class ServiceList(HTMLComponent, GUIComponent):
self.instance.moveSelectionTo(index)
print "Moving to character " + str(char)
self.instance.moveSelectionTo(index)
print "Moving to character " + str(char)
+ def moveToIndex(self, index):
+ self.instance.moveSelectionTo(index)
+
+ def getCurrentIndex(self):
+ return self.instance.getCurrentIndex()
+
def GUIcreate(self, parent):
self.instance = eListbox(parent)
self.instance.setContent(self.l)
def GUIcreate(self, parent):
self.instance = eListbox(parent)
self.instance.setContent(self.l)
@@
-73,9
+79,17
@@
class ServiceList(HTMLComponent, GUIComponent):
def setPlayableIgnoreService(self, ref):
self.l.setIgnoreService(ref)
def setPlayableIgnoreService(self, ref):
self.l.setIgnoreService(ref)
- def setRoot(self, root):
+ def setRoot(self, root
, justSet=False
):
self.root = root
self.root = root
- self.l.setRoot(root)
+ self.l.setRoot(root, justSet)
+ if not justSet:
+ self.l.sort()
+
+ def addService(self, service):
+ self.l.addService(service)
+
+ def finishFill(self):
+ self.l.FillFinished()
self.l.sort()
# stuff for multiple marks (edit mode / later multiepg)
self.l.sort()
# stuff for multiple marks (edit mode / later multiepg)