mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
Fix example plugin compilation
This commit is contained in:
parent
2cc0ec0a66
commit
b9f34f0632
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue