summaryrefslogtreecommitdiff
path: root/Applications/TextEditor/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-28 10:18:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-28 10:18:49 +0200
commit841b2e5d1367b1b5638d13dbed155ec53914e015 (patch)
tree93518fad445a53d5a8b79dc56150b9ba352170db /Applications/TextEditor/main.cpp
parent63619b9f7c5141d8ecdce98ea0f70039f4186e25 (diff)
downloadserenity-841b2e5d1367b1b5638d13dbed155ec53914e015.zip
WindowServer+LibGUI: Pass window icons as shared buffers rather than paths.
Now that we support more than 2 clients per shared buffer, we can use them for window icons. I didn't do that previously since it would have made the Taskbar process unable to access the icons. This opens up some nice possibilities for programmatically generated icons.
Diffstat (limited to 'Applications/TextEditor/main.cpp')
-rw-r--r--Applications/TextEditor/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp
index 680399603b..9564b7ca01 100644
--- a/Applications/TextEditor/main.cpp
+++ b/Applications/TextEditor/main.cpp
@@ -1,4 +1,5 @@
#include "TextEditorWidget.h"
+#include <LibDraw/PNGLoader.h>
int main(int argc, char** argv)
{
@@ -15,7 +16,7 @@ int main(int argc, char** argv)
text_widget->open_sesame(argv[1]);
window->show();
- window->set_icon_path("/res/icons/TextEditor16.png");
+ window->set_icon(load_png("/res/icons/TextEditor16.png"));
return app.exec();
}