mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47: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
|
@ -24,16 +24,7 @@
|
|||
|
||||
namespace VideoPlayer {
|
||||
|
||||
ErrorOr<NonnullRefPtr<VideoPlayerWidget>> VideoPlayerWidget::create()
|
||||
{
|
||||
auto main_widget = TRY(try_create());
|
||||
|
||||
TRY(main_widget->setup_interface());
|
||||
|
||||
return main_widget;
|
||||
}
|
||||
|
||||
ErrorOr<void> VideoPlayerWidget::setup_interface()
|
||||
ErrorOr<void> VideoPlayerWidget::initialize()
|
||||
{
|
||||
m_video_display = find_descendant_of_type_named<VideoPlayer::VideoFrameWidget>("video_frame");
|
||||
m_video_display->on_click = [&]() { toggle_pause(); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue