mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:47:36 +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
|
@ -1,7 +1,7 @@
|
|||
#include <LibGUI/GWindow.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GStatusBar.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
@ -9,15 +9,15 @@
|
|||
|
||||
static GWindow* make_window();
|
||||
|
||||
int main(int, char**)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
GEventLoop loop;
|
||||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = make_window();
|
||||
window->set_should_exit_app_on_close(true);
|
||||
window->show();
|
||||
|
||||
return loop.exec();
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
GWindow* make_window()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue