summaryrefslogtreecommitdiffstats
path: root/native/src/widget/helpers.rs
diff options
context:
space:
mode:
authorLibravatar 13r0ck <brock@szu.email>2023-01-03 11:23:58 -0700
committerLibravatar 13r0ck <brock@szu.email>2023-01-04 12:41:23 -0700
commitd8536e62484a2f46d0ad9b49b7141f6507d663e3 (patch)
treedd40e941ea50cb3dfa45b545de4ebff9ff95a4a9 /native/src/widget/helpers.rs
parentf641e20f7fb43932bb30776c607fe3745311ccd6 (diff)
downloadiced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.tar.gz
iced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.tar.bz2
iced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.zip
use same name & order for checkbox::new and helper
The helper function for the checkbox widget switched the order and name of the arguments passed when creating the checkbox widget. This just standardizes the order whether the dev is using the helper or the associated function. Continuation of https://github.com/iced-rs/iced/pull/1616
Diffstat (limited to 'native/src/widget/helpers.rs')
-rw-r--r--native/src/widget/helpers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/helpers.rs b/native/src/widget/helpers.rs
index 5b241f83..dfd949f6 100644
--- a/native/src/widget/helpers.rs
+++ b/native/src/widget/helpers.rs
@@ -129,7 +129,7 @@ where
Renderer: crate::text::Renderer,
Renderer::Theme: widget::checkbox::StyleSheet + widget::text::StyleSheet,
{
- widget::Checkbox::new(is_checked, label, f)
+ widget::Checkbox::new(label, is_checked, f)
}
/// Creates a new [`Radio`].