diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-26 20:38:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-26 20:38:28 +0100 |
commit | faedb763cae94c440e05991e1523da04282dd502 (patch) | |
tree | 607ed0efe9c1f295fb7d4330f2e6f8936be83972 /Libraries/LibGUI/Notification.cpp | |
parent | 3c2981804861b86e1acf47dc089188bb5c75d9cd (diff) | |
download | serenity-faedb763cae94c440e05991e1523da04282dd502.zip |
NotificationServer: Allow showing an icon in notifications
We currently use icon paths for this because I didn't want to deal with
implementing icon bitmap sharing right now. In the future it would be
better to post a bitmap somehow instead of a path.
Diffstat (limited to 'Libraries/LibGUI/Notification.cpp')
-rw-r--r-- | Libraries/LibGUI/Notification.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/Notification.cpp b/Libraries/LibGUI/Notification.cpp index f07f056a72..af8d794d83 100644 --- a/Libraries/LibGUI/Notification.cpp +++ b/Libraries/LibGUI/Notification.cpp @@ -35,7 +35,7 @@ Notification::~Notification() void Notification::show() { auto connection = NotificationServerConnection::construct(); - connection->post_message(Messages::NotificationServer::ShowNotification(m_text, m_title)); + connection->post_message(Messages::NotificationServer::ShowNotification(m_text, m_title, m_icon_path)); } } |