aboutsummaryrefslogtreecommitdiff
path: root/src/notifications.cpp
diff options
context:
space:
mode:
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;