mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:15:06 +00:00
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.
This commit is contained in:
parent
3c29818048
commit
faedb763ca
7 changed files with 24 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue