Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-02-26 15:09:45 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-02-26 15:09:45 (GMT)
commitd50a41165ec73b0651ff282fb860a68076d49da4 (patch)
tree94007513313f620005e04b800f3ed12979549a64 /src
parentf12edf401cd6a272f6dfac6eea20dbb72eb6898f (diff)
Make mute sound code togglable
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/view/keyhandler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jarabe/view/keyhandler.py b/src/jarabe/view/keyhandler.py
index 3039516..08856c0 100644
--- a/src/jarabe/view/keyhandler.py
+++ b/src/jarabe/view/keyhandler.py
@@ -202,7 +202,10 @@ class KeyHandler(object):
self._change_brightness(step=-_BRIGHTNESS_STEP)
def handle_volume_mute(self):
- self._change_volume(value=0)
+ if sound.get_muted() is True:
+ sound.set_muted(False)
+ else:
+ sound.set_muted(True)
def handle_volume_up(self):
self._change_volume(step=_VOLUME_STEP)