mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:27:42 +00:00
LibGUI: Convert GWindow to ObjectPtr
This commit is contained in:
parent
70412c7d4f
commit
7584480f62
25 changed files with 37 additions and 37 deletions
|
@ -10,7 +10,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
auto window = GWindow::construct();
|
||||
window->set_title("About Serenity");
|
||||
Rect window_rect { 0, 0, 240, 150 };
|
||||
window_rect.center_within(GDesktop::the().rect());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue