diff options
| author | 2024-10-25 19:28:18 +0200 | |
|---|---|---|
| committer | 2024-11-05 23:52:58 +0100 | |
| commit | dcc184b01b753dbecb500205391f6eaaa21c8683 (patch) | |
| tree | 9f1854261c3b3805e28f524df65487c09c9729f7 /widget/src/container.rs | |
| parent | 752403d70c851ece620c4007710062b158e8dec3 (diff) | |
| download | iced-dcc184b01b753dbecb500205391f6eaaa21c8683.tar.gz iced-dcc184b01b753dbecb500205391f6eaaa21c8683.tar.bz2 iced-dcc184b01b753dbecb500205391f6eaaa21c8683.zip  | |
Replace `event::Status` in `Widget::on_event` with `Shell::capture_event`
Diffstat (limited to 'widget/src/container.rs')
| -rw-r--r-- | widget/src/container.rs | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/widget/src/container.rs b/widget/src/container.rs index f4993ac9..f96c495c 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -21,7 +21,6 @@  //! ```  use crate::core::alignment::{self, Alignment};  use crate::core::border::{self, Border}; -use crate::core::event::{self, Event};  use crate::core::gradient::{self, Gradient};  use crate::core::layout;  use crate::core::mouse; @@ -30,7 +29,7 @@ use crate::core::renderer;  use crate::core::widget::tree::{self, Tree};  use crate::core::widget::{self, Operation};  use crate::core::{ -    self, color, Background, Clipboard, Color, Element, Layout, Length, +    self, color, Background, Clipboard, Color, Element, Event, Layout, Length,      Padding, Pixels, Point, Rectangle, Shadow, Shell, Size, Theme, Vector,      Widget,  }; @@ -308,7 +307,7 @@ where          clipboard: &mut dyn Clipboard,          shell: &mut Shell<'_, Message>,          viewport: &Rectangle, -    ) -> event::Status { +    ) {          self.content.as_widget_mut().on_event(              tree,              event, @@ -318,7 +317,7 @@ where              clipboard,              shell,              viewport, -        ) +        );      }      fn mouse_interaction(  | 
