mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:17:34 +00:00
LibGUI+Userland: Rename try_load_from_gml()
-> load_from_gml()
:^)
It's the only one, so the `try` prefix is unnecessary now.
This commit is contained in:
parent
e4e12f3a96
commit
f0395a2042
85 changed files with 107 additions and 107 deletions
|
@ -28,7 +28,7 @@ DemoWizardDialog::DemoWizardDialog(GUI::Window* parent_window)
|
|||
"Installation location",
|
||||
"Choose where Demo Application is installed on your computer.")
|
||||
.release_value_but_fixme_should_propagate_errors();
|
||||
m_page_1->body_widget().try_load_from_gml(demo_wizard_page_1_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_page_1->body_widget().load_from_gml(demo_wizard_page_1_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_page_1_location_text_box = m_page_1->body_widget().find_descendant_of_type_named<GUI::TextBox>("page_1_location_text_box");
|
||||
m_page_1->on_next_page = [&]() {
|
||||
return m_page_2;
|
||||
|
@ -39,7 +39,7 @@ DemoWizardDialog::DemoWizardDialog(GUI::Window* parent_window)
|
|||
"Installation in progress...",
|
||||
"Please wait. Do not turn off your computer.")
|
||||
.release_value_but_fixme_should_propagate_errors();
|
||||
m_page_2->body_widget().try_load_from_gml(demo_wizard_page_2_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_page_2->body_widget().load_from_gml(demo_wizard_page_2_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_page_2_progressbar = m_page_2->body_widget().find_descendant_of_type_named<GUI::Progressbar>("page_2_progressbar");
|
||||
m_page_2_timer = Core::Timer::try_create(this).release_value_but_fixme_should_propagate_errors();
|
||||
m_page_2->on_page_enter = [&]() {
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
|
||||
GalleryWidget::GalleryWidget()
|
||||
{
|
||||
try_load_from_gml(window_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(window_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto& tab_widget = *find_descendant_of_type_named<GUI::TabWidget>("tab_widget");
|
||||
|
||||
auto basics_tab = tab_widget.try_add_tab<GUI::Widget>("Basics").release_value_but_fixme_should_propagate_errors();
|
||||
basics_tab->try_load_from_gml(basics_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
basics_tab->load_from_gml(basics_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_enabled_label = basics_tab->find_descendant_of_type_named<GUI::Label>("enabled_label");
|
||||
m_label_frame = basics_tab->find_descendant_of_type_named<GUI::Frame>("label_frame");
|
||||
|
@ -170,7 +170,7 @@ GalleryWidget::GalleryWidget()
|
|||
};
|
||||
|
||||
auto sliders_tab = tab_widget.try_add_tab<GUI::Widget>("Sliders").release_value_but_fixme_should_propagate_errors();
|
||||
sliders_tab->try_load_from_gml(sliders_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
sliders_tab->load_from_gml(sliders_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_vertical_progressbar_left = sliders_tab->find_descendant_of_type_named<GUI::VerticalProgressbar>("vertical_progressbar_left");
|
||||
m_vertical_progressbar_left->set_value(0);
|
||||
|
@ -231,7 +231,7 @@ GalleryWidget::GalleryWidget()
|
|||
};
|
||||
|
||||
auto wizards_tab = tab_widget.try_add_tab<GUI::Widget>("Wizards").release_value_but_fixme_should_propagate_errors();
|
||||
wizards_tab->try_load_from_gml(wizards_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
wizards_tab->load_from_gml(wizards_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_wizard_button = wizards_tab->find_descendant_of_type_named<GUI::Button>("wizard_button");
|
||||
m_wizard_output = wizards_tab->find_descendant_of_type_named<GUI::TextEditor>("wizard_output");
|
||||
|
@ -287,7 +287,7 @@ GalleryWidget::GalleryWidget()
|
|||
};
|
||||
|
||||
auto cursors_tab = tab_widget.try_add_tab<GUI::Widget>("Cursors").release_value_but_fixme_should_propagate_errors();
|
||||
cursors_tab->try_load_from_gml(cursors_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
cursors_tab->load_from_gml(cursors_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_cursors_tableview = cursors_tab->find_descendant_of_type_named<GUI::TableView>("cursors_tableview");
|
||||
m_cursors_tableview->set_highlight_selected_rows(true);
|
||||
|
@ -310,7 +310,7 @@ GalleryWidget::GalleryWidget()
|
|||
};
|
||||
|
||||
auto icons_tab = tab_widget.try_add_tab<GUI::Widget>("Icons").release_value_but_fixme_should_propagate_errors();
|
||||
icons_tab->try_load_from_gml(icons_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
icons_tab->load_from_gml(icons_tab_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_icons_tableview = icons_tab->find_descendant_of_type_named<GUI::TableView>("icons_tableview");
|
||||
m_icons_tableview->set_highlight_selected_rows(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue