From cf943b8c9564a0cc8d215a7bc76a147bdd027aaf Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sat, 9 Sep 2023 08:27:33 +0200 Subject: Drop custom notification hints --- src/info-notification.vala | 3 --- src/warn-notification.vala | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/info-notification.vala b/src/info-notification.vala index 1405dfe..4379acf 100644 --- a/src/info-notification.vala +++ b/src/info-notification.vala @@ -50,9 +50,6 @@ 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-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 (); } diff --git a/src/warn-notification.vala b/src/warn-notification.vala index 6a08431..203758e 100644 --- a/src/warn-notification.vala +++ b/src/warn-notification.vala @@ -1,5 +1,6 @@ /* * Copyright 2015 Canonical Ltd. + * Copyright 2021-2023 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 + * Robert Tari */ public class IndicatorSound.WarnNotification: Notification @@ -31,9 +33,6 @@ public class IndicatorSound.WarnNotification: Notification _("Volume"), _("Allow volume above safe level?\nHigh volume can damage your hearing."), "audio-volume-high"); - n.set_hint ("x-lomiri-non-shaped-icon", "true"); - n.set_hint ("x-lomiri-snap-decisions", "true"); - n.set_hint ("x-lomiri-private-affirmative-tint", "true"); n.closed.connect ((n) => { n.clear_actions (); }); -- cgit v1.2.3