mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
WidgetGallery: Convert to try_create_default_icon
This commit is contained in:
parent
1adc808664
commit
d12359ff20
Notes:
sideshowbarker
2024-07-17 22:37:06 +09:00
Author: https://github.com/Astraeus-
Commit: d12359ff20
Pull-request: https://github.com/SerenityOS/serenity/pull/11293
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
TRY(Core::System::unveil("/home/anon", "r"));
|
TRY(Core::System::unveil("/home/anon", "r"));
|
||||||
TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));
|
TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
auto app_icon = GUI::Icon::default_icon("app-widget-gallery");
|
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-widget-gallery"));
|
||||||
|
|
||||||
auto window = TRY(GUI::Window::try_create());
|
auto window = TRY(GUI::Window::try_create());
|
||||||
window->resize(430, 480);
|
window->resize(430, 480);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue