From 29c24529be0f644ae5ef4f51cfa0963a2eb708ac Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 19 Feb 2015 10:23:01 -0600 Subject: Round the value because apparently i386 ends up at 59.9 in the test and truncation causes a failure. --- src/service.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/service.vala') diff --git a/src/service.vala b/src/service.vala index c19da9d..20f670f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -328,7 +328,7 @@ public class IndicatorSound.Service: Object { /* Put it all into the notification */ sync_notification.clear_hints (); sync_notification.update (_("Volume"), volume_label, icon); - sync_notification.set_hint ("value", (int32)(volume_control.volume.volume * 100.0)); + sync_notification.set_hint ("value", (int32)Math.round(volume_control.volume.volume * 100.0)); sync_notification.set_hint ("x-canonical-value-bar-tint", tint); sync_notification.set_hint ("x-canonical-private-synchronous", "true"); sync_notification.set_hint ("x-canonical-non-shaped-icon", "true"); -- cgit v1.2.3