diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ab0e3502a7..50a62a50f1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,8 @@ jobs: examples: - "application" - "open-dialog" + - "context-menu" + - "nav-context" runs-on: ubuntu-22.04 steps: - name: Checkout sources diff --git a/examples/context-menu/src/main.rs b/examples/context-menu/src/main.rs index 5c4fea8b762..cfc991849b3 100644 --- a/examples/context-menu/src/main.rs +++ b/examples/context-menu/src/main.rs @@ -134,7 +134,7 @@ pub enum ContextMenuAction { impl menu::Action for ContextMenuAction { type Message = Message; - fn message(&self, _entity_opt: Option) -> Self::Message { + fn message(&self) -> Self::Message { match self { ContextMenuAction::WindowClose => Message::WindowClose, ContextMenuAction::ToggleHideContent => Message::ToggleHideContent, diff --git a/examples/cosmic/src/window.rs b/examples/cosmic/src/window.rs index 6ef9097de64..b47853409f0 100644 --- a/examples/cosmic/src/window.rs +++ b/examples/cosmic/src/window.rs @@ -446,7 +446,6 @@ impl Application for Window { Message::CondensedViewToggle => {} Message::KeyboardNav(message) => match message { - keyboard_nav::Message::Unfocus => ret = keyboard_nav::unfocus(), keyboard_nav::Message::FocusNext => ret = widget::focus_next(), keyboard_nav::Message::FocusPrevious => ret = widget::focus_previous(), _ => (), diff --git a/examples/nav-context/src/main.rs b/examples/nav-context/src/main.rs index 7382fb7e7e4..9882284a471 100644 --- a/examples/nav-context/src/main.rs +++ b/examples/nav-context/src/main.rs @@ -72,7 +72,7 @@ pub enum NavMenuAction { impl menu::Action for NavMenuAction { type Message = cosmic::app::Message; - fn message(&self, _entity: Option) -> Self::Message { + fn message(&self) -> Self::Message { cosmic::app::Message::App(Message::NavMenuAction(*self)) } }