add showInfobarOrEpgWhenInfobarAlreadyVisible
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 14 Jul 2007 08:08:25 +0000 (08:08 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 14 Jul 2007 08:08:25 +0000 (08:08 +0000)
lib/python/Screens/InfoBarGenerics.py

index c3d15f0..e270099 100644 (file)
@@ -406,8 +406,16 @@ class InfoBarEPG:
                self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions", 
                        {
                                "showEventInfo": (self.openEventView, _("show EPG...")),
+                               "showInfobarOrEpgWhenInfobarAlreadyVisible": self.showEventInfoWhenNotVisible,
                        })
 
+       def showEventInfoWhenNotVisible(self):
+               if self.shown:
+                       self.openEventView()
+               else:
+                       self.toggleShow()
+                       return 1
+
        def zapToService(self, service):
                if not service is None:
                        if self.servicelist.getRoot() != self.epg_bouquet: #already in correct bouquet?