mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Port all apps to GApplication.
This commit is contained in:
parent
9483b39227
commit
3351f1ccc1
10 changed files with 48 additions and 106 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue