aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-09 22:15:35 -0500
committerTed Gould <ted@gould.cx>2014-10-09 22:15:35 -0500
commit4da707591f393735ed3306421e2c1518eff4d3e5 (patch)
tree3bb697c930d9dec18f3542f5dd18f9e76357e087 /src
parenta0dc1f66614ac40bc527ccad537ff607a4bef642 (diff)
downloadayatana-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')
-rw-r--r--src/volume-control.vala2
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");