From 70de347bcfaffada9b556c868a0e6d8f2d907089 Mon Sep 17 00:00:00 2001 From: Byson94 Date: Wed, 10 Dec 2025 14:52:56 +0530 Subject: [PATCH] fix: clockwise prop not working on circ progress --- CHANGELOG.md | 8 ++++++-- crates/ewwii/src/widgets/widget_definitions.rs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed98f64..b19852b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). ## [UNRELEASED] -## Added +### Added - `gtk_ui` function for loading .ui files. - `widget-control` (`wc` in short) command for controlling widgets. @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/). - `widget_control` utility function for dynamic widget handling. - `text` and `show_text` property to progressbar widget. +### Fixed + +- `clockwise` property not working on circular_progress. + ## [0.3.1] - 2025-11-01 ## Fixed @@ -26,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). ## [0.3.0] - 2025-11-01 -## Added +### Added - `localsignal` signal for fast and cheap property update. - `localbind` utility for binding `localsignal` to a widget property. diff --git a/crates/ewwii/src/widgets/widget_definitions.rs b/crates/ewwii/src/widgets/widget_definitions.rs index 0f145a8..d442e54 100644 --- a/crates/ewwii/src/widgets/widget_definitions.rs +++ b/crates/ewwii/src/widgets/widget_definitions.rs @@ -1294,7 +1294,7 @@ pub(super) fn build_circular_progress_bar( widget.set_property("thickness", thickness); } - if let Ok(clockwise) = get_f64_prop(&props, "clockwise", None) { + if let Ok(clockwise) = get_bool_prop(&props, "clockwise", None) { widget.set_property("clockwise", clockwise); }