mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:57:47 +00:00
Userland: Replace all uses of load_from_gml
with try_load_from_gml
MOAR FIXMES! ;^)
This commit is contained in:
parent
703da34947
commit
54b1326165
78 changed files with 94 additions and 111 deletions
|
@ -24,8 +24,7 @@ EditGuideDialog::EditGuideDialog(GUI::Window* parent_window, DeprecatedString co
|
|||
set_resizable(false);
|
||||
|
||||
auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors();
|
||||
if (!main_widget->load_from_gml(edit_guide_dialog_gml))
|
||||
VERIFY_NOT_REACHED();
|
||||
main_widget->try_load_from_gml(edit_guide_dialog_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto horizontal_radio = main_widget->find_descendant_of_type_named<GUI::RadioButton>("orientation_horizontal_radio");
|
||||
auto vertical_radio = main_widget->find_descendant_of_type_named<GUI::RadioButton>("orientation_vertical_radio");
|
||||
|
|
|
@ -22,8 +22,7 @@ FilterGallery::FilterGallery(GUI::Window* parent_window, ImageEditor* editor)
|
|||
set_resizable(true);
|
||||
|
||||
auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors();
|
||||
if (!main_widget->load_from_gml(filter_gallery_gml))
|
||||
VERIFY_NOT_REACHED();
|
||||
main_widget->try_load_from_gml(filter_gallery_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_filter_tree = main_widget->find_descendant_of_type_named<GUI::TreeView>("tree_view");
|
||||
auto apply_button = main_widget->find_descendant_of_type_named<GUI::Button>("apply_button");
|
||||
|
|
|
@ -46,7 +46,7 @@ RefPtr<GUI::Widget> Median::get_settings_widget()
|
|||
{
|
||||
if (!m_settings_widget) {
|
||||
m_settings_widget = GUI::Widget::construct();
|
||||
m_settings_widget->load_from_gml(median_settings_gml);
|
||||
m_settings_widget->try_load_from_gml(median_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_settings_widget->find_descendant_of_type_named<GUI::SpinBox>("filter_radius")->on_change = [this](auto value) {
|
||||
m_filter_radius = value;
|
||||
update_preview();
|
||||
|
|
|
@ -19,8 +19,7 @@ LevelsDialog::LevelsDialog(GUI::Window* parent_window, ImageEditor* editor)
|
|||
set_icon(parent_window->icon());
|
||||
|
||||
auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors();
|
||||
if (!main_widget->load_from_gml(levels_dialog_gml))
|
||||
VERIFY_NOT_REACHED();
|
||||
main_widget->try_load_from_gml(levels_dialog_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
resize(305, 202);
|
||||
set_resizable(false);
|
||||
|
|
|
@ -37,7 +37,7 @@ IconBag g_icon_bag;
|
|||
MainWidget::MainWidget()
|
||||
: Widget()
|
||||
{
|
||||
load_from_gml(pixel_paint_window_gml);
|
||||
try_load_from_gml(pixel_paint_window_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_toolbox = find_descendant_of_type_named<PixelPaint::ToolboxWidget>("toolbox");
|
||||
m_statusbar = *find_descendant_of_type_named<GUI::Statusbar>("statusbar");
|
||||
|
|
|
@ -28,8 +28,7 @@ ResizeImageDialog::ResizeImageDialog(Gfx::IntSize suggested_size, GUI::Window* p
|
|||
set_icon(parent_window->icon());
|
||||
|
||||
auto main_widget = set_main_widget<GUI::Widget>().release_value_but_fixme_should_propagate_errors();
|
||||
if (!main_widget->load_from_gml(resize_image_dialog_gml))
|
||||
VERIFY_NOT_REACHED();
|
||||
main_widget->try_load_from_gml(resize_image_dialog_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto width_spinbox = main_widget->find_descendant_of_type_named<GUI::SpinBox>("width_spinbox");
|
||||
auto height_spinbox = main_widget->find_descendant_of_type_named<GUI::SpinBox>("height_spinbox");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue