diff options
author | Ted Gould <ted@gould.cx> | 2014-10-09 21:52:03 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-09 21:52:03 -0500 |
commit | 228153f72649485111052f5f13a84fd73f290b94 (patch) | |
tree | 707bb2ddbfedc660af2f48c598fe128d5e1891d0 /src/volume-control.vala | |
parent | d10cf747faeebb0b363fe80666c82cf659a116ab (diff) | |
download | ayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.tar.gz ayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.tar.bz2 ayatana-indicator-sound-228153f72649485111052f5f13a84fd73f290b94.zip |
Make sure to clear the sound hint
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 5 |
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 (); } |