aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {