diff options
author | Ted Gould <ted@gould.cx> | 2014-10-09 22:15:35 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-09 22:15:35 -0500 |
commit | 4da707591f393735ed3306421e2c1518eff4d3e5 (patch) | |
tree | 3bb697c930d9dec18f3542f5dd18f9e76357e087 /src/volume-control.vala | |
parent | a0dc1f66614ac40bc527ccad537ff607a4bef642 (diff) | |
download | ayatana-indicator-sound-4da707591f393735ed3306421e2c1518eff4d3e5.tar.gz ayatana-indicator-sound-4da707591f393735ed3306421e2c1518eff4d3e5.tar.bz2 ayatana-indicator-sound-4da707591f393735ed3306421e2c1518eff4d3e5.zip |
Ensure we send an integer to the notification service
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index aee670e..0541397 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -587,7 +587,7 @@ public class VolumeControl : Object _notification.update (_("Volume"), "", "audio-volume-medium"); if (volume > 0.66 && volume <= 1.0) _notification.update (_("Volume"), "", "audio-volume-high"); - _notification.set_hint ("value", volume * 100.0); + _notification.set_hint ("value", (int32)(volume * 100.0)); 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"); |