aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-24 13:05:10 -0600
committerTed Gould <ted@gould.cx>2015-02-24 13:05:10 -0600
commite5a30aa5678ccf55884691e6c8f35cb439d1a3de (patch)
tree0b191c60ca9a91723e44b5f85ef64296955b1e25 /src
parentd41efaf10217625c18ce64c257a104301fe03082 (diff)
parenta053aad96cef8673b3be3300825485a511af7d23 (diff)
downloadayatana-indicator-sound-e5a30aa5678ccf55884691e6c8f35cb439d1a3de.tar.gz
ayatana-indicator-sound-e5a30aa5678ccf55884691e6c8f35cb439d1a3de.tar.bz2
ayatana-indicator-sound-e5a30aa5678ccf55884691e6c8f35cb439d1a3de.zip
Merging the max volume branch
Diffstat (limited to 'src')
-rw-r--r--src/service.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala
index 926decf..adf85eb 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -326,7 +326,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");