diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-29 19:04:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-29 19:37:23 +0200 |
commit | 7cfe712f4d0298cb645a602afe116698ab0fcd67 (patch) | |
tree | 51a964bf210be086634bc69bd48d3ed11debffe5 /Applications | |
parent | 24a0354ce84c6c839930788bc772736f7c56ae18 (diff) | |
download | serenity-7cfe712f4d0298cb645a602afe116698ab0fcd67.zip |
LibGfx+LibIPC: Add Gfx::ShareableBitmap, a bitmap for easy IPC usage
With this patch, it's now possible to pass a Gfx::ShareableBitmap in an
IPC message. As long as the message itself is synchronous, the bitmap
will be adopted by the receiving end, and disowned by the sender nicely
without any accounting effort like we've had to do in the past.
Use this in NotificationServer to allow sending arbitrary bitmaps as
icons instead of paths-to-icons.
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/IRCClient/IRCWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/IRCClient/IRCWindow.cpp b/Applications/IRCClient/IRCWindow.cpp index d1f58ab6db..8fbca5a57e 100644 --- a/Applications/IRCClient/IRCWindow.cpp +++ b/Applications/IRCClient/IRCWindow.cpp @@ -116,7 +116,7 @@ void IRCWindow::post_notification_if_needed(const String& name, const String& me notification->set_title(name); } - notification->set_icon_path("/res/icons/32x32/app-irc-client.png"); + notification->set_icon(Gfx::Bitmap::load_from_file("/res/icons/32x32/app-irc-client.png")); notification->set_text(message); notification->show(); } |