aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRatchanan Srirattanamet <ratchanan@ubports.com>2023-12-06 23:52:09 +0700
committerRatchanan Srirattanamet <ratchanan@ubports.com>2023-12-07 00:21:03 +0700
commit18d92e36d1d08affd20ae905f6a9efdb139af170 (patch)
tree95dca794b5348fc47c38011aaa2fe6e2d8e4b191 /src
parent51d61854f2b90eb21b00fa2d84284bc3b77862b6 (diff)
downloadayatana-indicator-power-18d92e36d1d08affd20ae905f6a9efdb139af170.tar.gz
ayatana-indicator-power-18d92e36d1d08affd20ae905f6a9efdb139af170.tar.bz2
ayatana-indicator-power-18d92e36d1d08affd20ae905f6a9efdb139af170.zip
Revert "Remove orphan osd-notify remnants"
As discussed in [1], these hints are essential to make the indicator functions correctly on Lomiri. These hints should not make any difference on DE's that doesn't support them. [1] https://gitlab.com/ubports/development/core/content-hub/-/merge_requests/32#note_1552217874 This reverts commit ba37bd3998252a759434a8455e52f00699b50a09.
Diffstat (limited to 'src')
-rw-r--r--src/notifier.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 07c5efa..cef8a3c 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -343,6 +343,10 @@ notification_show(IndicatorPowerNotifier * self)
}
}
+ notify_notification_set_hint(nn, "x-lomiri-snap-decisions", g_variant_new_string("true"));
+ notify_notification_set_hint(nn, "x-lomiri-non-shaped-icon", g_variant_new_string("true"));
+ notify_notification_set_hint(nn, "x-lomiri-private-affirmative-tint", g_variant_new_string("true"));
+ notify_notification_set_hint(nn, "x-lomiri-snap-decisions-timeout", g_variant_new_int32(INT32_MAX));
notify_notification_set_timeout(nn, NOTIFY_EXPIRES_NEVER);
notify_notification_add_action(nn, "dismiss", _("OK"), on_dismiss_clicked, NULL, NULL);
notify_notification_add_action(nn, "settings", _("Battery settings"), on_battery_settings_clicked, NULL, NULL);