summaryrefslogtreecommitdiffstats
path: root/widget/src/stack.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-10-25 22:06:06 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 23:52:58 +0100
commitf02bfc3f68322bea0c56283d76888714be401ec2 (patch)
treed7793a7572cbc441e16fa982155343bcc54e83ea /widget/src/stack.rs
parentdcc184b01b753dbecb500205391f6eaaa21c8683 (diff)
downloadiced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.gz
iced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.bz2
iced-f02bfc3f68322bea0c56283d76888714be401ec2.zip
Rename `Widget::on_event` to `update`
Diffstat (limited to '')
-rw-r--r--widget/src/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/stack.rs b/widget/src/stack.rs
index 2cb628ab..52fd5031 100644
--- a/widget/src/stack.rs
+++ b/widget/src/stack.rs
@@ -204,7 +204,7 @@ where
});
}
- fn on_event(
+ fn update(
&mut self,
tree: &mut Tree,
event: Event,
@@ -224,7 +224,7 @@ where
.zip(tree.children.iter_mut().rev())
.zip(layout.children().rev())
{
- child.as_widget_mut().on_event(
+ child.as_widget_mut().update(
state,
event.clone(),
layout,