1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

VideoPlayer: Port VideoPlayer to GML compilation

This commit is contained in:
tetektoza 2023-09-29 20:24:14 +02:00 committed by Tim Schumacher
parent e26548989a
commit 1e11116d65
6 changed files with 10 additions and 16 deletions

View file

@ -19,16 +19,14 @@
#include <LibGUI/Toolbar.h>
#include <LibGUI/ToolbarContainer.h>
#include <LibGUI/Window.h>
#include <Userland/Applications/VideoPlayer/VideoPlayerWindowGML.h>
#include "VideoPlayerWidget.h"
namespace VideoPlayer {
ErrorOr<NonnullRefPtr<VideoPlayerWidget>> VideoPlayerWidget::try_create()
ErrorOr<NonnullRefPtr<VideoPlayerWidget>> VideoPlayerWidget::create()
{
auto main_widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) VideoPlayerWidget()));
TRY(main_widget->load_from_gml(videoplayer_window_gml));
auto main_widget = TRY(try_create());
TRY(main_widget->setup_interface());