Rename Widget::on_event to update

This commit is contained in:
Héctor Ramón Jiménez 2024-10-25 22:06:06 +02:00
parent dcc184b01b
commit f02bfc3f68
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
37 changed files with 67 additions and 67 deletions

View file

@ -271,7 +271,7 @@ where
};
if !is_picked {
self.body.as_widget_mut().on_event(
self.body.as_widget_mut().update(
&mut tree.children[0],
event,
body_layout,

View file

@ -454,7 +454,7 @@ where
if let Some(compact) = controls.compact.as_mut() {
let compact_layout = children.next().unwrap();
compact.as_widget_mut().on_event(
compact.as_widget_mut().update(
&mut tree.children[2],
event.clone(),
compact_layout,
@ -467,7 +467,7 @@ where
} else {
show_title = false;
controls.full.as_widget_mut().on_event(
controls.full.as_widget_mut().update(
&mut tree.children[1],
event.clone(),
controls_layout,
@ -479,7 +479,7 @@ where
);
}
} else {
controls.full.as_widget_mut().on_event(
controls.full.as_widget_mut().update(
&mut tree.children[1],
event.clone(),
controls_layout,
@ -493,7 +493,7 @@ where
}
if show_title {
self.content.as_widget_mut().on_event(
self.content.as_widget_mut().update(
&mut tree.children[0],
event,
title_layout,