aboutsummaryrefslogtreecommitdiff
path: root/src/notifications.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-12 08:52:10 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-12 08:52:10 +0100
commit22b65e6be7aad7b47124160371e32b4a5baf8e40 (patch)
tree37b7d5c05aff166ee8f3ec4620ddd394ffbd2522 /src/notifications.cpp
parentd3dc11e491e3b09847d51cd840435435284d92a7 (diff)
parent3bd6b2f43bc793e95317f03b2e1622a2a7c1afcc (diff)
downloadayatana-indicator-datetime-22b65e6be7aad7b47124160371e32b4a5baf8e40.tar.gz
ayatana-indicator-datetime-22b65e6be7aad7b47124160371e32b4a5baf8e40.tar.bz2
ayatana-indicator-datetime-22b65e6be7aad7b47124160371e32b4a5baf8e40.zip
Merge branch 'tari01-pr/libnotify-0-8-4-icon-fix'
Attributes GH PR #136: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/136
Diffstat (limited to 'src/notifications.cpp')
-rw-r--r--src/notifications.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/notifications.cpp b/src/notifications.cpp
index 4049851..c7b20c8 100644
--- a/src/notifications.cpp
+++ b/src/notifications.cpp
@@ -1,6 +1,6 @@
/*
* Copyright 2014 Canonical Ltd.
- * Copyright 2021-2023 Robert Tari
+ * Copyright 2021-2025 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
@@ -251,6 +251,12 @@ public:
}
);
+#ifdef LIBNOTIFY_HAS_SET_APP_ICON
+ NotifyNotification *pNotification = nn.get ();
+ const char *sIcon = info.m_icon_name.c_str ();
+ notify_notification_set_app_icon (pNotification, sIcon);
+#endif
+
if (info.m_duration.count() != 0)
{
const auto& d= info.m_duration;