summaryrefslogtreecommitdiffstats
path: root/widget/src/stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/stack.rs')
-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,