aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-15 22:55:59 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-15 22:55:59 +0000
commit49b1d6023e84aa49b29bc0c0cd2e293b3a7e360c (patch)
tree6fe30d26a34fab1e7b42ad2d4f00b6f3eebcb6e6 /lib/python/Screens
parent2d5b15f3ca1f7f92f949906d0199f9266d845e31 (diff)
downloadenigma2-49b1d6023e84aa49b29bc0c0cd2e293b3a7e360c.tar.gz
enigma2-49b1d6023e84aa49b29bc0c0cd2e293b3a7e360c.zip
add a global ActionMap
make volumeActions global
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index de12c093..a627cdb4 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -38,20 +38,21 @@ from Components.config import config, currentConfigSelectionElement
# hack alert!
from Menu import MainMenu, mdom
+from GlobalActions import globalActionMap
+
class InfoBarVolumeControl:
"""Volume control, handles volUp, volDown, volMute actions and display
a corresponding dialog"""
+
def __init__(self):
+ global globalActionMap
+ globalActionMap.actions["volumeUp"]=self.volUp
+ globalActionMap.actions["volumeDown"]=self.volDown
+ globalActionMap.actions["volumeMute"]=self.volMute
+
config.audio = ConfigSubsection()
config.audio.volume = configElement("config.audio.volume", configSequence, [100], configsequencearg.get("INTEGER", (0, 100)))
- self["VolumeActions"] = ActionMap( ["InfobarVolumeActions"] ,
- {
- "volumeUp": self.volUp,
- "volumeDown": self.volDown,
- "volumeMute": self.volMute,
- })
-
self.volumeDialog = self.session.instantiateDialog(Volume)
self.muteDialog = self.session.instantiateDialog(Mute)