diff options
author | Ratchanan Srirattanamet <ratchanan@ubports.com> | 2023-01-17 10:52:54 +0000 |
---|---|---|
committer | Ratchanan Srirattanamet <ratchanan@ubports.com> | 2023-01-17 10:52:54 +0000 |
commit | 456cbf253801b2d7536d790a034c9b44d910a5a9 (patch) | |
tree | c0f3e97c445dba3f5150d91784a60e0a7f7d0427 /src/info-notification.vala | |
parent | e9b738bf4e0efa26c2d2a3061919728dcaeea33e (diff) | |
download | ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.tar.gz ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.tar.bz2 ayatana-indicator-sound-456cbf253801b2d7536d790a034c9b44d910a5a9.zip |
src/, tests/: update references to renamed notification hints
More notification hints have been renamed. So update to follow it.
- x-canonical-private-synchronous -> x-lomiri-private-synchronous
- x-canonical-private-icon-only -> x-lomiri-private-icon-only
- x-canonical-truncation -> x-lomiri-truncation (which Lomiri has
compatibility with the former name, so keep in the mocked
capabilities)
Diffstat (limited to 'src/info-notification.vala')
-rw-r--r-- | src/info-notification.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala index ce92a2a..bd43a91 100644 --- a/src/info-notification.vala +++ b/src/info-notification.vala @@ -30,7 +30,7 @@ public class IndicatorSound.InfoNotification: Notification public void show (VolumeControl.ActiveOutput active_output, double volume, bool is_high_volume) { - if (!notify_server_supports ("x-canonical-private-synchronous")) + if (!notify_server_supports ("x-lomiri-private-synchronous")) return; /* Determine Label */ @@ -44,7 +44,7 @@ public class IndicatorSound.InfoNotification: Notification n.update (_("Volume"), volume_label, icon); n.clear_hints(); n.set_hint ("x-lomiri-non-shaped-icon", "true"); - n.set_hint ("x-canonical-private-synchronous", "true"); + n.set_hint ("x-lomiri-private-synchronous", "true"); n.set_hint ("x-lomiri-value-bar-tint", is_high_volume ? "true" : "false"); n.set_hint ("value", ((int32)((volume * 100.0) + 0.5)).clamp(0, 100)); show_notification (); |