diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-27 16:43:40 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-27 16:43:40 +0200 |
commit | c589574a6c982febb768cc4830e8a63057e9b9f9 (patch) | |
tree | ff82550d4ac2824abd72ddf168cdd663f25b65e3 /src | |
parent | 420a0c16d82e57f61089b4111d5c446a54cdf9ae (diff) | |
parent | c4e401f08ae5374badd6e9321a5bf84ef8d7531e (diff) | |
download | ayatana-indicator-sound-c589574a6c982febb768cc4830e8a63057e9b9f9.tar.gz ayatana-indicator-sound-c589574a6c982febb768cc4830e8a63057e9b9f9.tar.bz2 ayatana-indicator-sound-c589574a6c982febb768cc4830e8a63057e9b9f9.zip |
Merge branch 'tari01-pr/x-canonical-to-x-ayatana'
Attributes GH PR #40: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/40
Diffstat (limited to 'src')
-rw-r--r-- | src/info-notification.vala | 2 | ||||
-rw-r--r-- | src/warn-notification.vala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala index e093aae..7e7e372 100644 --- a/src/info-notification.vala +++ b/src/info-notification.vala @@ -41,7 +41,7 @@ public class IndicatorSound.InfoNotification: Notification var n = _notification; n.update (_("Volume"), volume_label, icon); n.clear_hints(); - n.set_hint ("x-canonical-non-shaped-icon", "true"); + 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 ("value", ((int32)((volume * 100.0) + 0.5)).clamp(0, 100)); diff --git a/src/warn-notification.vala b/src/warn-notification.vala index 12e34e4..3c473d3 100644 --- a/src/warn-notification.vala +++ b/src/warn-notification.vala @@ -31,9 +31,9 @@ public class IndicatorSound.WarnNotification: Notification _("Volume"), _("Allow volume above safe level?\nHigh volume can damage your hearing."), "audio-volume-high"); - n.set_hint ("x-canonical-non-shaped-icon", "true"); - n.set_hint ("x-canonical-snap-decisions", "true"); - n.set_hint ("x-canonical-private-affirmative-tint", "true"); + n.set_hint ("x-ayatana-non-shaped-icon", "true"); + n.set_hint ("x-ayatana-snap-decisions", "true"); + n.set_hint ("x-ayatana-private-affirmative-tint", "true"); n.closed.connect ((n) => { n.clear_actions (); }); |