aboutsummaryrefslogtreecommitdiff
path: root/src/info-notification.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-30 14:33:08 -0600
committercharles kerr <charlesk@canonical.com>2015-12-30 14:33:08 -0600
commit812e71f004272f635ba9217ef2f16aa9567196b3 (patch)
tree33f9eebe8406023c15872db634cdc0885bd47331 /src/info-notification.vala
parent33b1c8824b89b207a1b8b0967094da782d85727a (diff)
downloadayatana-indicator-sound-812e71f004272f635ba9217ef2f16aa9567196b3.tar.gz
ayatana-indicator-sound-812e71f004272f635ba9217ef2f16aa9567196b3.tar.bz2
ayatana-indicator-sound-812e71f004272f635ba9217ef2f16aa9567196b3.zip
fix rounding regression in info-notification's volume percentage
Diffstat (limited to 'src/info-notification.vala')
-rw-r--r--src/info-notification.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index 36be8a1..bf04f61 100644
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -44,7 +44,7 @@ public class IndicatorSound.InfoNotification: Notification
n.set_hint ("x-canonical-non-shaped-icon", "true");
n.set_hint ("x-canonical-private-synchronous", "true");
n.set_hint ("x-canonical-value-bar-tint", is_high_volume ? "true" : "false");
- n.set_hint ("value", (int32)(volume * 100.0));
+ n.set_hint ("value", (int32)((volume * 100.0) + 0.5));
show_notification();
}