Fix example plugin compilation

This commit is contained in:
scorpion-26 2023-09-01 03:09:40 +02:00
parent 2cc0ec0a66
commit b9f34f0632
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,8 @@ void Create(Window& window, int32_t monitor)
auto mainWidget = Widget::Create<Text>(); auto mainWidget = Widget::Create<Text>();
mainWidget->SetText("Hello, World!"); mainWidget->SetText("Hello, World!");
window = Window(std::move(mainWidget), monitor); window = Window(monitor);
window.SetMainWidget(std::move(mainWidget));
} }
DEFINE_PLUGIN(Create); DEFINE_PLUGIN(Create);

View file

@ -7,6 +7,8 @@ project('gBarHelloWorld',
gBar = dependency('gBar') gBar = dependency('gBar')
add_global_arguments('-DUSE_LOGFILE', language: 'cpp')
library( library(
'gBarHelloWorld', 'gBarHelloWorld',
['main.cpp'], ['main.cpp'],