From 6c6284caed19b70710e431dcfd15ac5a2a21f414 Mon Sep 17 00:00:00 2001 From: iovxw Date: Sat, 7 Dec 2024 11:45:03 +0800 Subject: [PATCH] Bump version to 0.3.1, update CHANGELOG --- CHANGELOG.md | 18 +++++++++++++----- Cargo.toml | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a742ac..9010c88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,15 @@ +# 0.3.1 (2024-12-07) + +- Fixed compatibility of `Orientation` with org.kde.StatusNotifierItem, previously only with org.freedesktop.StatusNotifierItem +- Documentation updates + # 0.3.0 (2024-12-05) Replaced dbus-rs with zbus, got async -All methods of `TrayService` have been moved into `TrayMethods`. `TrayMethods` is a trait that -is implemented by default for all `T where T: Tray`, so you no longer need to wrap a `Tray` with -`TrayService` to call the spawn method. +All methods of `TrayService` have been moved into `TrayMethods`. `TrayMethods` is a trait that is +implemented by default for all `T where T: Tray` ([RFC #445]), so you no longer need to wrap a +`Tray` with `TrayService` to call the spawn method. The new `spawn` method returns a `Result`. Any error during the tray creation is returned directly. If the spawn succeeds, tray is created. No longer need to impl `watcher_online` @@ -13,7 +18,9 @@ and `watcher_offline` to handle the result of a spawned tray. The `run` method has been removed, no one's actually using it. With this change, we don't have to provide a separate method to return the `Handle`, it can be returned directly by the spawn method. -Big thanks to @lunixbochs +Big thanks to [@lunixbochs](https://github.com/lunixbochs) + +[RFC #445]: https://rust-lang.github.io/rfcs/0445-extension-trait-conventions.html ## Added @@ -21,6 +28,7 @@ Big thanks to @lunixbochs - `OfflineReason`, see below #Changed - `Orientation` - `blocking::*` for blocking API +- `Tray::MENU_ON_ACTIVATE` for the org.freedesktop.StatusNotifierItem.ItemIsMenu ## Removed @@ -30,7 +38,7 @@ Big thanks to @lunixbochs ## Changed - All methods that should be async are now async -- `Tray` now requires `Send + 'static`. If you are using `.spawn`, this won't affect you. +- `Tray` now requires `Send`. If you are using `.spawn`, this won't affect you. - `Tray::id` is a required method now, default impl removed - `Tray::scroll(&mut self, i32, &str)` -> `Tray::scroll(&mut self, i32, Orientation)` - `Tray::watcher_offline` have a new `OfflineReason` argument diff --git a/Cargo.toml b/Cargo.toml index 979d4d5..fb13fdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ksni" -version = "0.3.0" +version = "0.3.1" authors = ["iovxw "] edition = "2021" rust-version = "1.80"