1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Port all apps to GApplication.

This commit is contained in:
Andreas Kling 2019-02-11 14:56:23 +01:00
parent 9483b39227
commit 3351f1ccc1
10 changed files with 48 additions and 106 deletions

View file

@ -1,10 +1,12 @@
#include "FontEditor.h"
#include <LibGUI/GEventLoop.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GWindow.h>
#include <stdio.h>
int main(int argc, char** argv)
{
GApplication app(argc, argv);
RetainPtr<Font> edited_font;
String path;
@ -22,7 +24,6 @@ int main(int argc, char** argv)
else
edited_font = Font::default_font().clone();
GEventLoop loop;
auto* window = new GWindow;
window->set_title("FontEditor");
window->set_rect({ 50, 50, 420, 200 });
@ -31,5 +32,5 @@ int main(int argc, char** argv)
window->set_main_widget(font_editor);
window->set_should_exit_app_on_close(true);
window->show();
return loop.exec();
return app.exec();
}