aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
authorMirco Müller <mirco.muller@canonical.com>2014-10-14 18:27:46 -0500
committerTed Gould <ted@gould.cx>2014-10-14 18:27:46 -0500
commitd7fbfc4d0babbcd54a3951f5da721153cc194d9b (patch)
treeafd10137038dd94abad346cbe97d2adeed144a2f /src/volume-control.vala
parentbca300c56a2d77c4a51b96d3c35c9b2d20ceb0a3 (diff)
downloadayatana-indicator-sound-d7fbfc4d0babbcd54a3951f5da721153cc194d9b.tar.gz
ayatana-indicator-sound-d7fbfc4d0babbcd54a3951f5da721153cc194d9b.tar.bz2
ayatana-indicator-sound-d7fbfc4d0babbcd54a3951f5da721153cc194d9b.zip
Make High-volume text work correctly
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 8245c50..5a7e66d 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -612,7 +612,7 @@ public class VolumeControl : Object
high_volume = false;
/* Determine Label */
- string volume_label = _("Volume");
+ string volume_label = "";
if (high_volume)
volume_label = _("High volume");
@@ -636,10 +636,13 @@ public class VolumeControl : Object
tint = "true";
/* Put it all into the notification */
+ _notification.clear_hints ();
_notification.update (_("Volume"), volume_label, icon);
_notification.set_hint ("value", (int32)(volume * 100.0));
_notification.set_hint ("sound-file", sound);
_notification.set_hint ("x-canonical-value-bar-tint", tint);
+ _notification.set_hint ("x-canonical-private-synchronous", "true");
+ _notification.set_hint ("x-canonical-non-shaped-icon", "true");
/* Show it */
try {