widget gallery and compositor test bench
Standardize sidebar_w access on widgets and fix Makefile target path
Makefile | 2 +-
src/main.rs | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 1dca17f..6ad1a18 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ build:
install: build
mkdir -p ~/.local/bin
- install -m 755 target/release/cce-test-interface ~/.local/bin/cce-test-interface
+ install -m 755 ../target/release/cce-test-interface ~/.local/bin/cce-test-interface
run:
cargo run
diff --git a/src/main.rs b/src/main.rs
index df545bf..c13fa19 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -368,7 +368,7 @@ impl State {
let positions = if is_child {
child_positions(sw, sh)
} else {
- let sidebar_w = widgets[1].sidebar_w();
+ let sidebar_w = widgets[1].as_page_selector().unwrap().sidebar_w();
demo_positions(sw, sh, sidebar_w)
};
@@ -712,7 +712,7 @@ impl State {
self.positions = if self.is_child {
child_positions(self.width, self.height)
} else {
- let sidebar_w = self.widgets[1].sidebar_w();
+ let sidebar_w = self.widgets[1].as_page_selector().unwrap().sidebar_w();
demo_positions(self.width, self.height, sidebar_w)
};
clear_ui::scale::set_scale_factor(self.scale as f32);