LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients

This commit is contained in:
Andreas Kling 2020-03-04 09:46:23 +01:00
parent 4697195645
commit 0f3e57a6fb
Notes: sideshowbarker 2024-07-19 08:54:48 +09:00
37 changed files with 203 additions and 246 deletions

View file

@ -128,8 +128,7 @@ int main(int argc, char** argv)
window->set_window_type(GUI::WindowType::MenuApplet);
window->resize(30, 16);
auto widget = GraphWidget::construct();
window->set_main_widget(widget);
window->set_main_widget<GraphWidget>();
window->show();
if (unveil("/res", "r") < 0) {