From b9f34f063225ebff7cf92bef2dbe16faa7fbc66c Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Fri, 1 Sep 2023 03:09:40 +0200 Subject: [PATCH] Fix example plugin compilation --- example/main.cpp | 3 ++- example/meson.build | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/example/main.cpp b/example/main.cpp index 6be79e9..2fd363d 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -6,7 +6,8 @@ void Create(Window& window, int32_t monitor) auto mainWidget = Widget::Create(); mainWidget->SetText("Hello, World!"); - window = Window(std::move(mainWidget), monitor); + window = Window(monitor); + window.SetMainWidget(std::move(mainWidget)); } DEFINE_PLUGIN(Create); diff --git a/example/meson.build b/example/meson.build index 56f5a92..e64a820 100644 --- a/example/meson.build +++ b/example/meson.build @@ -7,6 +7,8 @@ project('gBarHelloWorld', gBar = dependency('gBar') +add_global_arguments('-DUSE_LOGFILE', language: 'cpp') + library( 'gBarHelloWorld', ['main.cpp'],