From 69405aaa7623a981fb821e5e671358b27e51916f Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Sat, 15 Aug 2020 19:33:24 +0200 Subject: [PATCH] main: initialize orbtk with initialize() functions * needed at least for wayland client Signed-off-by: Ralf Zerres --- advotracker/src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/advotracker/src/main.rs b/advotracker/src/main.rs index 8d2260b..d19d8a3 100644 --- a/advotracker/src/main.rs +++ b/advotracker/src/main.rs @@ -97,15 +97,18 @@ fn main() -> Result<(), Box> { state = t!("state.started", lang); trace!(target: "advotracker", process = ?res, state = ?state); + // use this only if you want to run it as web application. + orbtk::initialize(); + Application::from_name("nwx.advotracker") .theme(PolicyCheckState::theme()) .window(|ctx| { Window::new() .title("AdvoTracker - DirectCall") - .position((500.0, 100.0)) + //.position((500.0, 100.0)) .size(580.0, 320.0) - .min_width(460.0) - .min_height(180.0) + //.min_width(460.0) + //.min_height(180.0) .resizeable(true) .child(main_view::MainView::new().build(ctx)) .build(ctx)