mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-21 18:52: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>();
|
||||
mainWidget->SetText("Hello, World!");
|
||||
|
||||
window = Window(std::move(mainWidget), monitor);
|
||||
window = Window(monitor);
|
||||
window.SetMainWidget(std::move(mainWidget));
|
||||
}
|
||||
|
||||
DEFINE_PLUGIN(Create);
|
||||
|
|
|
@ -7,6 +7,8 @@ project('gBarHelloWorld',
|
|||
|
||||
gBar = dependency('gBar')
|
||||
|
||||
add_global_arguments('-DUSE_LOGFILE', language: 'cpp')
|
||||
|
||||
library(
|
||||
'gBarHelloWorld',
|
||||
['main.cpp'],
|
||||
|
|
Loading…
Reference in a new issue