mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Userland: Port to automatic GML initializer where possible
This commit is contained in:
parent
dec066fa5c
commit
adc845e0cb
41 changed files with 148 additions and 245 deletions
|
@ -61,7 +61,7 @@ ErrorOr<void> MainWidget::set_start_page(Vector<StringView, 2> query_parameters)
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> MainWidget::initialize_fallibles(GUI::Window& window)
|
||||
ErrorOr<void> MainWidget::initialize(GUI::Window& window)
|
||||
{
|
||||
m_toolbar = find_descendant_of_type_named<GUI::Toolbar>("toolbar");
|
||||
m_tab_widget = find_descendant_of_type_named<GUI::TabWidget>("tab_widget");
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
|
||||
static ErrorOr<NonnullRefPtr<MainWidget>> try_create();
|
||||
|
||||
ErrorOr<void> initialize_fallibles(GUI::Window&);
|
||||
ErrorOr<void> initialize(GUI::Window&);
|
||||
ErrorOr<void> set_start_page(Vector<StringView, 2> query_parameters);
|
||||
|
||||
private:
|
||||
|
|
|
@ -63,7 +63,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto main_widget = TRY(MainWidget::try_create());
|
||||
window->set_main_widget(main_widget);
|
||||
|
||||
TRY(main_widget->initialize_fallibles(window));
|
||||
TRY(main_widget->initialize(window));
|
||||
TRY(main_widget->set_start_page(query_parameters));
|
||||
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue