From 142e649e1eb5f6e74f81a69bc7c7e093fb8716c9 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 11 Dec 2005 22:26:45 +0000 Subject: [PATCH] make infobar actions helpable --- lib/python/Screens/InfoBar.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py index a48cb75..b28ce51 100644 --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -4,7 +4,7 @@ from Screens.MovieSelection import MovieSelection from Screens.MessageBox import MessageBox from Components.Clock import Clock -from Components.ActionMap import ActionMap +from Components.ActionMap import ActionMap, HelpableActionMap from Components.ServicePosition import ServicePosition from Tools.Notifications import AddNotificationWithCallback @@ -30,9 +30,9 @@ class InfoBar(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, def __init__(self, session): Screen.__init__(self, session) - self["actions"] = ActionMap( [ "InfobarActions" ], + self["actions"] = HelpableActionMap(self, "InfobarActions", { - "showMovies": self.showMovies, + "showMovies": (self.showMovies, _("Play recorded movies...")) }) for x in HelpableScreen, \ @@ -60,9 +60,9 @@ class MoviePlayer(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey def __init__(self, session, service): Screen.__init__(self, session) - self["actions"] = ActionMap( [ "MoviePlayerActions" ], + self["actions"] = HelpableActionMap(self, "MoviePlayerActions", { - "leavePlayer": self.leavePlayer + "leavePlayer": (self.leavePlayer, _("leave movie player...")) }) for x in HelpableScreen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, InfoBarMenu, InfoBarServiceName, InfoBarPVR, InfoBarAudioSelection, InfoBarNotifications: -- 2.7.4