From dc8e9d41fd1869c022844273d6ae879e0515efa5 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 3 Aug 2023 21:55:19 +0300 Subject: [PATCH] fix: fix examples --- examples/tao.rs | 2 +- examples/windows-common-controls-v6/src/main.rs | 2 +- examples/winit.rs | 2 +- examples/wry.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tao.rs b/examples/tao.rs index 6e08217..5458a01 100644 --- a/examples/tao.rs +++ b/examples/tao.rs @@ -143,7 +143,7 @@ fn main() { #[cfg(target_os = "macos")] { menu_bar.init_for_nsapp(); - window_m.set_windows_menu_for_nsapp(); + window_m.set_as_windows_menu_for_nsapp(); } let menu_channel = MenuEvent::receiver(); diff --git a/examples/windows-common-controls-v6/src/main.rs b/examples/windows-common-controls-v6/src/main.rs index efb6aac..1d208ad 100644 --- a/examples/windows-common-controls-v6/src/main.rs +++ b/examples/windows-common-controls-v6/src/main.rs @@ -133,7 +133,7 @@ fn main() { #[cfg(target_os = "macos")] { menu_bar.init_for_nsapp(); - window_m.set_windows_menu_for_nsapp(); + window_m.set_as_windows_menu_for_nsapp(); } let menu_channel = MenuEvent::receiver(); diff --git a/examples/winit.rs b/examples/winit.rs index 691e10e..664b069 100644 --- a/examples/winit.rs +++ b/examples/winit.rs @@ -133,7 +133,7 @@ fn main() { #[cfg(target_os = "macos")] { menu_bar.init_for_nsapp(); - window_m.set_windows_menu_for_nsapp(); + window_m.set_as_windows_menu_for_nsapp(); } let menu_channel = MenuEvent::receiver(); diff --git a/examples/wry.rs b/examples/wry.rs index 7c79c6c..93e4e36 100644 --- a/examples/wry.rs +++ b/examples/wry.rs @@ -146,7 +146,7 @@ fn main() -> wry::Result<()> { #[cfg(target_os = "macos")] { menu_bar.init_for_nsapp(); - window_m.set_windows_menu_for_nsapp(); + window_m.set_as_windows_menu_for_nsapp(); } #[cfg(windows)]