aboutsummaryrefslogtreecommitdiff
path: root/src/notifications.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-09 13:25:59 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-09 13:25:59 +0200
commit0d2c8f74be593014099a61c0e3089d80399ef3dd (patch)
tree027e6599a1d9ee0984753fb6325b496433bb81e8 /src/notifications.cpp
parent36d648b28cbc731e333406d934e95b188341c445 (diff)
parent0a88a8d7aee8d8ee253de43f031c0811d8015a3a (diff)
downloadayatana-indicator-datetime-0d2c8f74be593014099a61c0e3089d80399ef3dd.tar.gz
ayatana-indicator-datetime-0d2c8f74be593014099a61c0e3089d80399ef3dd.tar.bz2
ayatana-indicator-datetime-0d2c8f74be593014099a61c0e3089d80399ef3dd.zip
Merge branch 'tari01-pr/notification-cleanup'
Attributes GH PR #114: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/114
Diffstat (limited to 'src/notifications.cpp')
-rw-r--r--src/notifications.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/notifications.cpp b/src/notifications.cpp
index bb0e05c..b962e68 100644
--- a/src/notifications.cpp
+++ b/src/notifications.cpp
@@ -1,6 +1,6 @@
/*
* Copyright 2014 Canonical Ltd.
- * Copyright 2021 Robert Tari
+ * 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 version 3, as published
@@ -248,10 +248,7 @@ public:
{
const auto& d= info.m_duration;
auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(d);
-
- notify_notification_set_hint (nn.get(),
- HINT_TIMEOUT,
- g_variant_new_int32(ms.count()));
+ notify_notification_set_timeout (nn.get (), ms.count ());
}
for (const auto& hint : info.m_string_hints)
@@ -512,8 +509,6 @@ private:
// server capabilities.
// as the name indicates, don't use this directly: use server_caps() instead
mutable std::set<std::string> m_lazy_caps;
-
- static constexpr char const * HINT_TIMEOUT {"x-lomiri-snap-decisions-timeout"};
};
/***