diff --git a/.changes/acccelerator-typo.md b/.changes/acccelerator-typo.md deleted file mode 100644 index 12717d2a..00000000 --- a/.changes/acccelerator-typo.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"muda": "minor" ---- - -**Breaking change** Renamed the `acccelerator` method (which has an extra `c`) on `MenuItemBuilder`, `CheckMenuItemBuilder`, and `IconMenuItemBuilder` to `accelerator`. diff --git a/.changes/make-macos-impl-details-private.md b/.changes/make-macos-impl-details-private.md deleted file mode 100644 index 5b58b68f..00000000 --- a/.changes/make-macos-impl-details-private.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"muda": minor ---- - -**Breaking Change** Changed the type of the pointer passed in `show_context_menu_for_nsview` to `c_void`, and make the method `unsafe`. diff --git a/.changes/set-theme-dark-windows.md b/.changes/set-theme-dark-windows.md deleted file mode 100644 index 9836cdfc..00000000 --- a/.changes/set-theme-dark-windows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"muda": patch ---- - -Fix `set_theme_for_hwnd` always resulting in dark on Windows, and doesn't refresh until losing and regaining focus diff --git a/.changes/unsafe.md b/.changes/unsafe.md deleted file mode 100644 index f7a330c4..00000000 --- a/.changes/unsafe.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"muda": "minor" ---- - -**Breaking change** Marked a few methods with `unsafe` to better represent the safety guarantees: - -- `ContextMenu::show_context_menu_for_hwnd` -- `ContextMenu::attach_menu_subclass_for_hwnd` -- `ContextMenu::detach_menu_subclass_from_hwnd` -- `Menu::init_for_hwnd` -- `Menu::init_for_hwnd_with_theme` -- `Menu::set_theme_for_hwnd` -- `Menu::remove_for_hwnd` -- `Menu::hide_for_hwnd` -- `Menu::show_for_hwnd` -- `Menu::is_visible_on_hwnd` diff --git a/.changes/use-objc2.md b/.changes/use-objc2.md deleted file mode 100644 index e7eaf206..00000000 --- a/.changes/use-objc2.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"muda": minor ---- - -Use `objc2` internally, leading to much better memory safety. The crate will panic now if used from a thread that is not the main thread. diff --git a/CHANGELOG.md b/CHANGELOG.md index f3b568da..89e94f26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## \[0.15.0] + +- [`40d06c5`](https://www.github.com/tauri-apps/muda/commit/40d06c5c9712ab4e12a8bc3a9124e5975df595e3) ([#226](https://www.github.com/tauri-apps/muda/pull/226) by [@amrbashir](https://www.github.com/tauri-apps/muda/../../amrbashir)) **Breaking change** Renamed the `acccelerator` method (which has an extra `c`) on `MenuItemBuilder`, `CheckMenuItemBuilder`, and `IconMenuItemBuilder` to `accelerator`. +- [`0d368bb`](https://www.github.com/tauri-apps/muda/commit/0d368bb32728a104f0d6ad100193b0212495dd64) ([#220](https://www.github.com/tauri-apps/muda/pull/220) by [@madsmtm](https://www.github.com/tauri-apps/muda/../../madsmtm)) **Breaking Change** Changed the type of the pointer passed in `show_context_menu_for_nsview` to `c_void`, and make the method `unsafe`. +- [`63c9f28`](https://www.github.com/tauri-apps/muda/commit/63c9f2873c7d2f6c1b477e0d5c7f79ccda90ea85) ([#224](https://www.github.com/tauri-apps/muda/pull/224) by [@Legend-Master](https://www.github.com/tauri-apps/muda/../../Legend-Master)) Fix `set_theme_for_hwnd` always resulting in dark on Windows, and doesn't refresh until losing and regaining focus +- [`f781c0e`](https://www.github.com/tauri-apps/muda/commit/f781c0edd0af7ab166e10f816978ffed2761376b) ([#227](https://www.github.com/tauri-apps/muda/pull/227) by [@amrbashir](https://www.github.com/tauri-apps/muda/../../amrbashir)) **Breaking change** Marked a few methods with `unsafe` to better represent the safety guarantees: + + - `ContextMenu::show_context_menu_for_hwnd` + - `ContextMenu::attach_menu_subclass_for_hwnd` + - `ContextMenu::detach_menu_subclass_from_hwnd` + - `Menu::init_for_hwnd` + - `Menu::init_for_hwnd_with_theme` + - `Menu::set_theme_for_hwnd` + - `Menu::remove_for_hwnd` + - `Menu::hide_for_hwnd` + - `Menu::show_for_hwnd` + - `Menu::is_visible_on_hwnd` +- [`5c8971a`](https://www.github.com/tauri-apps/muda/commit/5c8971a7c28a48669605236ddc097460ffd3b32f) ([#221](https://www.github.com/tauri-apps/muda/pull/221) by [@madsmtm](https://www.github.com/tauri-apps/muda/../../madsmtm)) Use `objc2` internally, leading to much better memory safety. The crate will panic now if used from a thread that is not the main thread. + ## \[0.14.1] - [`07ca638`](https://www.github.com/tauri-apps/muda/commit/07ca6382bc1ae08984c21034b8033cee3eb147c7) ([#213](https://www.github.com/tauri-apps/muda/pull/213)) Fix handling the separator of `CARGO_PKG_AUTHORS` environment variable value in `from_cargo_metadata` macro. diff --git a/Cargo.toml b/Cargo.toml index 3b153e2b..76f2cebe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "muda" -version = "0.14.1" +version = "0.15.0" description = "Menu Utilities for Desktop Applications" edition = "2021" keywords = ["windowing", "menu"]