aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-11-03 20:07:08 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-05 13:40:52 +0100
commit89bdf3a90fb92c4794d7b25f286d34dbc4093d88 (patch)
tree5da3305e76f97cdacdbefe7c06f2bc682e128155 /src
parent8dfa72f222878d87825048d2bc1f4c4b05276d02 (diff)
downloadayatana-indicator-sound-89bdf3a90fb92c4794d7b25f286d34dbc4093d88.tar.gz
ayatana-indicator-sound-89bdf3a90fb92c4794d7b25f286d34dbc4093d88.tar.bz2
ayatana-indicator-sound-89bdf3a90fb92c4794d7b25f286d34dbc4093d88.zip
Rename x-canonical-value-bar-tint
Diffstat (limited to 'src')
-rw-r--r--src/info-notification.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index 7e7e372..c5f8fd8 100644
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -1,5 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
+ * Copyright 2021 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +16,7 @@
*
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
using Notify;
@@ -43,7 +45,7 @@ public class IndicatorSound.InfoNotification: Notification
n.clear_hints();
n.set_hint ("x-ayatana-non-shaped-icon", "true");
n.set_hint ("x-canonical-private-synchronous", "true");
- n.set_hint ("x-canonical-value-bar-tint", is_high_volume ? "true" : "false");
+ n.set_hint ("x-ayatana-value-bar-tint", is_high_volume ? "true" : "false");
n.set_hint ("value", ((int32)((volume * 100.0) + 0.5)).clamp(0, 100));
show_notification ();
}