follow core event changes
[enigma2.git] / lib / python / Components / PerServiceDisplay.py
index 01e5cc8224e13c51e9eb4bcc508b525a200c4345..fe5010528bdd0de3f862e81b06432bf0f29e58b9 100644 (file)
@@ -2,7 +2,7 @@ from GUIComponent import *
 from VariableText import *
 from VariableValue import *
 
-from enigma import pNavigation
+from enigma import iPlayableService
 from enigma import eLabel, eSlider
 
 class PerServiceDisplay(GUIComponent, VariableText):
@@ -16,7 +16,7 @@ class PerServiceDisplay(GUIComponent, VariableText):
                self.navcore.event.append(self.event)
 
                # start with stopped state, so simulate that
-               self.event(pNavigation.evStopService)
+               self.event(iPlayableService.evEnd)
 
        def event(self, ev):
                # loop up if we need to handle this event
@@ -39,7 +39,7 @@ class PerServiceDisplayProgress(GUIComponent, VariableValue, PerServiceDisplay):
                self.navcore.event.append(self.event)
 
                # start with stopped state, so simulate that
-               self.event(pNavigation.evStopService)
+               self.event(iPlayableService.evEnd)
 
 
        def createWidget(self, parent):