aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-09 13:43:53 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-09 13:43:53 +0200
commitc0496578c0c03f37715157388c083635247ed211 (patch)
treea20fadac9eb6ac2feb7f24155eb85b60fc0e51ee
parent9c70557431e9da691322b285def2031b7dc02738 (diff)
parentba37bd3998252a759434a8455e52f00699b50a09 (diff)
downloadayatana-indicator-power-c0496578c0c03f37715157388c083635247ed211.tar.gz
ayatana-indicator-power-c0496578c0c03f37715157388c083635247ed211.tar.bz2
ayatana-indicator-power-c0496578c0c03f37715157388c083635247ed211.zip
Merge branch 'tari01-pr/notification-cleanup'
Attributes GH PR #86: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/86
-rw-r--r--src/notifier.c4
-rw-r--r--tests/test-notify.cc2
2 files changed, 0 insertions, 6 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 0a56b6b..8362eb6 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -330,10 +330,6 @@ 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);
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index 12a80fb..9fdb577 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -72,8 +72,6 @@ protected:
static constexpr char const * METHOD_GET_INFO {"GetServerInformation"};
static constexpr char const * SIGNAL_CLOSED {"NotificationClosed"};
- static constexpr char const * HINT_TIMEOUT {"x-lomiri-snap-decisions-timeout"};
-
protected:
void SetUp()