also provide showInfobarOrEpgWhenInfobarAlreadyVisible in InfoBarSimpleEventView
authorFelix Domke <tmbinc@2mac.waldobjekt.org>
Wed, 24 Jun 2009 21:47:22 +0000 (23:47 +0200)
committerFelix Domke <tmbinc@2mac.waldobjekt.org>
Wed, 24 Jun 2009 21:47:22 +0000 (23:47 +0200)
lib/python/Screens/InfoBarGenerics.py

index 7f90b97..bfeb394 100644 (file)
@@ -366,8 +366,16 @@ class InfoBarSimpleEventView:
                self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions",
                        {
                                "showEventInfo": (self.openEventView, _("show event details")),
+                               "showInfobarOrEpgWhenInfobarAlreadyVisible": self.showEventInfoWhenNotVisible,
                        })
 
+       def showEventInfoWhenNotVisible(self):
+               if self.shown:
+                       self.openEventView()
+               else:
+                       self.toggleShow()
+                       return 1
+
        def openEventView(self):
                epglist = [ ]
                self.epglist = epglist