activate language when used in standalone screen
[enigma2.git] / lib / python / Screens / EpgSelection.py
index 03228f6..db8be2e 100644 (file)
@@ -21,6 +21,11 @@ class EPGSelection(Screen):
                class ChannelActionMap(ActionMap):
                        def action(self, contexts, action):
                                        ActionMap.action(self, contexts, action)
+                                       
+               self["key_red"] = Button("")
+               self["key_green"] = Button(_("Add timer"))
+               self["key_yellow"] = Button("")
+               self["key_blue"] = Button("")
 
                self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"], 
                        {
@@ -41,7 +46,7 @@ class EPGSelection(Screen):
 
        def eventSelected(self):
                event = self["list"].getCurrent()
-               self.session.open(EventView, event, self.eventViewCallback)
+               self.session.open(EventView, event, self.currentService, self.eventViewCallback)
        
        def timerAdd(self):
                epg = self["list"].getCurrent()
@@ -69,8 +74,9 @@ class EPGSelection(Screen):
                        self.session.nav.RecordTimer.record(answer[1])
                else:
                        print "Timeredit aborted"       
-                       
+
        def setRoot(self, root):
+               self.currentService=ServiceReference(root)
                self["list"].setRoot(root)
 
        def moveUp(self):