Skip to content

Commit

Permalink
chore: fix examples and add them to GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
l-const authored Sep 3, 2024
1 parent 0a1922d commit b2ecb41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
examples:
- "application"
- "open-dialog"
- "context-menu"
- "nav-context"
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion examples/context-menu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub enum ContextMenuAction {

impl menu::Action for ContextMenuAction {
type Message = Message;
fn message(&self, _entity_opt: Option<segmented_button::Entity>) -> Self::Message {
fn message(&self) -> Self::Message {
match self {
ContextMenuAction::WindowClose => Message::WindowClose,
ContextMenuAction::ToggleHideContent => Message::ToggleHideContent,
Expand Down
1 change: 0 additions & 1 deletion examples/cosmic/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
_ => (),
Expand Down
2 changes: 1 addition & 1 deletion examples/nav-context/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub enum NavMenuAction {
impl menu::Action for NavMenuAction {
type Message = cosmic::app::Message<Message>;

fn message(&self, _entity: Option<cosmic::widget::segmented_button::Entity>) -> Self::Message {
fn message(&self) -> Self::Message {
cosmic::app::Message::App(Message::NavMenuAction(*self))
}
}
Expand Down

0 comments on commit b2ecb41

Please sign in to comment.