aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-09 21:52:03 -0500
committerTed Gould <ted@gould.cx>2014-10-09 21:52:03 -0500
commit228153f72649485111052f5f13a84fd73f290b94 (patch)
tree707bb2ddbfedc660af2f48c598fe128d5e1891d0
parentd10cf747faeebb0b363fe80666c82cf659a116ab (diff)
downloadayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.tar.gz
ayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.tar.bz2
ayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.zip
Make sure to clear the sound hint
-rw-r--r--src/volume-control.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 17367e8..86b976e 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -588,9 +588,12 @@ public class VolumeControl : Object
if (_volume > 0.66 && _volume <= 1.0)
_notification.update (_("Volume"), "", "audio-volume-high");
_notification.set_hint ("value", _volume * 100.0);
- if (_active_sink_input == -1 || _valid_roles[_active_sink_input] != "multimedia")
+ if (_active_sink_input == -1 || _valid_roles[_active_sink_input] != "multimedia") {
/* No audio ping if we're playing multimedia */
_notification.set_hint ("sound-file", "/usr/share/sounds/ubuntu/stereo/message.ogg");
+ } else {
+ _notification.set_hint ("sound-file", null);
+ }
_notification.show ();
}