mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 15:05:09 +00:00
LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients
This commit is contained in:
parent
4697195645
commit
0f3e57a6fb
37 changed files with 203 additions and 246 deletions
|
@ -94,8 +94,7 @@ int main(int argc, char** argv)
|
|||
window->set_window_type(GUI::WindowType::MenuApplet);
|
||||
window->resize(12, 16);
|
||||
|
||||
auto widget = AudioWidget::construct();
|
||||
window->set_main_widget(widget);
|
||||
window->set_main_widget<AudioWidget>();
|
||||
window->show();
|
||||
|
||||
if (unveil("/res", "r") < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue