diff options
author | Ted Gould <ted@gould.cx> | 2015-02-27 22:36:07 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-02-27 22:36:07 +0000 |
commit | dff67f240ebfc9fe842383d612948597517d3c83 (patch) | |
tree | 5809fda6f584e7875e863b16c04c8e86a0aeb1a7 /src | |
parent | a18d5b7b0a4389042af832e5397e1fd731ec7479 (diff) | |
parent | a053aad96cef8673b3be3300825485a511af7d23 (diff) | |
download | ayatana-indicator-sound-dff67f240ebfc9fe842383d612948597517d3c83.tar.gz ayatana-indicator-sound-dff67f240ebfc9fe842383d612948597517d3c83.tar.bz2 ayatana-indicator-sound-dff67f240ebfc9fe842383d612948597517d3c83.zip |
Use max volume in calculating notification value Fixes: #1422745
Approved by: Charles Kerr, PS Jenkins bot
Diffstat (limited to 'src')
-rw-r--r-- | src/service.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala index 0804e53..ff78e0b 100644 --- a/src/service.vala +++ b/src/service.vala @@ -324,7 +324,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)Math.round(volume_control.volume.volume * 100.0)); + sync_notification.set_hint ("value", (int32)Math.round(volume_control.volume.volume / this.max_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"); |