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/pane_grid | |
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/pane_grid')
-rw-r--r-- | widget/src/pane_grid/content.rs | 2 | ||||
-rw-r--r-- | widget/src/pane_grid/title_bar.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/widget/src/pane_grid/content.rs b/widget/src/pane_grid/content.rs index 81a5cc1e..e0199f0a 100644 --- a/widget/src/pane_grid/content.rs +++ b/widget/src/pane_grid/content.rs @@ -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, diff --git a/widget/src/pane_grid/title_bar.rs b/widget/src/pane_grid/title_bar.rs index ec1dc302..618eb4c5 100644 --- a/widget/src/pane_grid/title_bar.rs +++ b/widget/src/pane_grid/title_bar.rs @@ -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, |