1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibGUI: Convert GFrame to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 19:21:36 +02:00
parent 7b5342b2e3
commit 55a6e4ac0b
7 changed files with 21 additions and 17 deletions

View file

@ -21,7 +21,7 @@ TaskbarWindow::TaskbarWindow()
GDesktop::the().on_rect_change = [this](const Rect& rect) { on_screen_rect_change(rect); };
auto* widget = new GFrame;
auto widget = GFrame::construct();
widget->set_fill_with_background_color(true);
widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
widget->layout()->set_margins({ 3, 2, 3, 2 });