1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:17:36 +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

@ -13,9 +13,9 @@
#include <LibGUI/GWidget.h>
#include <LibGUI/GLabel.h>
#include <LibGUI/GButton.h>
#include <LibGUI/GEventLoop.h>
#include <LibGUI/GTextBox.h>
#include <LibGUI/GCheckBox.h>
#include <LibGUI/GApplication.h>
#include <signal.h>
static GWindow* make_font_test_window();
@ -31,9 +31,10 @@ void handle_sigchld(int)
int main(int argc, char** argv)
{
GApplication app(argc, argv);
signal(SIGCHLD, handle_sigchld);
GEventLoop loop;
#if 0
auto* font_test_window = make_font_test_window();
font_test_window->show();
@ -43,7 +44,7 @@ int main(int argc, char** argv)
launcher_window->set_should_exit_app_on_close(true);
launcher_window->show();
return loop.exec();
return app.exec();
}
GWindow* make_font_test_window()