diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-30 14:33:08 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-30 14:33:08 -0600 |
commit | 812e71f004272f635ba9217ef2f16aa9567196b3 (patch) | |
tree | 33f9eebe8406023c15872db634cdc0885bd47331 /src | |
parent | 33b1c8824b89b207a1b8b0967094da782d85727a (diff) | |
download | ayatana-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')
-rw-r--r-- | src/info-notification.vala | 2 |
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(); } |