From 812e71f004272f635ba9217ef2f16aa9567196b3 Mon Sep 17 00:00:00 2001 From: charles kerr Date: Wed, 30 Dec 2015 14:33:08 -0600 Subject: fix rounding regression in info-notification's volume percentage --- src/info-notification.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); } -- cgit v1.2.3