diff options
author | 2024-10-25 22:06:06 +0200 | |
---|---|---|
committer | 2024-11-05 23:52:58 +0100 | |
commit | f02bfc3f68322bea0c56283d76888714be401ec2 (patch) | |
tree | d7793a7572cbc441e16fa982155343bcc54e83ea /widget/src/combo_box.rs | |
parent | dcc184b01b753dbecb500205391f6eaaa21c8683 (diff) | |
download | iced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.gz iced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.bz2 iced-f02bfc3f68322bea0c56283d76888714be401ec2.zip |
Rename `Widget::on_event` to `update`
Diffstat (limited to 'widget/src/combo_box.rs')
-rw-r--r-- | widget/src/combo_box.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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, |