- Fixed compatibility of
Orientationwith org.kde.StatusNotifierItem, previously only with org.freedesktop.StatusNotifierItem - Documentation updates
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 (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<Handle, Error>. Any error during the tray creation is
returned directly. If the spawn succeeds, tray is created. No longer need to impl watcher_online
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
TrayMethodsOfflineReason, see below #ChangedOrientationblocking::*for blocking APITray::MENU_ON_ACTIVATEfor the org.freedesktop.StatusNotifierItem.ItemIsMenu
TrayService, see the newTrayMethods- Deprecated methods in 0.2
- All methods that should be async are now async
Traynow requiresSend. If you are using.spawn, this won't affect you.Tray::idis a required method now, default impl removedTray::scroll(&mut self, i32, &str)->Tray::scroll(&mut self, i32, Orientation)Tray::watcher_offlinehave a newOfflineReasonargumentTray::watcher_onlineorTray::watcher_offlinewon't be called immediately after tray started, now only be called after the state of watcher changed
TrayService::run_without_dbus_nameTrayService::spwan_without_dbus_name
See iovxw#25 for details