From f02bfc3f68322bea0c56283d76888714be401ec2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 25 Oct 2024 22:06:06 +0200 Subject: Rename `Widget::on_event` to `update` --- widget/src/combo_box.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widget/src/combo_box.rs') diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs index 1122861f..6c5d2309 100644 --- a/widget/src/combo_box.rs +++ b/widget/src/combo_box.rs @@ -510,7 +510,7 @@ where vec![widget::Tree::new(&self.text_input as &dyn Widget<_, _, _>)] } - fn on_event( + fn update( &mut self, tree: &mut widget::Tree, event: Event, @@ -539,7 +539,7 @@ where let mut local_shell = Shell::new(&mut local_messages); // Provide it to the widget - self.text_input.on_event( + self.text_input.update( &mut tree.children[0], event.clone(), layout, @@ -728,7 +728,7 @@ where published_message_to_shell = true; // Unfocus the input - self.text_input.on_event( + self.text_input.update( &mut tree.children[0], Event::Mouse(mouse::Event::ButtonPressed( mouse::Button::Left, -- cgit