mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Userland: Make GUI::Window
construction non-fallible
This commit is contained in:
parent
b6b2c6f3e2
commit
0d7b13edac
55 changed files with 60 additions and 60 deletions
|
@ -38,7 +38,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("edit-copy"sv));
|
||||
|
||||
auto main_window = TRY(GUI::Window::try_create());
|
||||
auto main_window = GUI::Window::construct();
|
||||
main_window->set_title("Clipboard History");
|
||||
main_window->set_rect(670, 65, 325, 500);
|
||||
main_window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
@ -96,7 +96,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
entry_context_menu->popup(event.screen_position());
|
||||
};
|
||||
|
||||
auto applet_window = TRY(GUI::Window::try_create());
|
||||
auto applet_window = GUI::Window::construct();
|
||||
applet_window->set_title("ClipboardHistory");
|
||||
applet_window->set_window_type(GUI::WindowType::Applet);
|
||||
applet_window->set_has_alpha_channel(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue