name mode size
..
main.rs 100644 5.32kB
README.md
# Rust App This is a base application to integrate with Rust and Gtk. It integrates a tray icon and some actions, with a main window which is only hiding rather than closing. The window will be un-hidden by clicking the Main menu item in the tray icon. This should also bring the window on top of the other windows. The icon (emoticon) is present on the taskbar and also on the tray icon. However due to the limitation of the tray icon, both a ico and png file are necessary. The build script (build.rs) is copying the icon to the destination directory. The build is not kept with the files but is set in a separate directory. ``` ../../../Projects/RustBuild/rustapp ``` This path is kept in .cargo/config.toml The build script is also using the same destination directory. This script needs to be changed to use the same destination. ### To run: A few dependencies needs to be used: - The trayicon widget To build the project ``` cargo build ``` To run the project ``` cargo run ``` ### Note: - The keybinder is not implemented in the GTK bindings - This project is only targetted at GTK and was only tested on Linux. ### References: - https://docs.rs/appindicator3/latest/src/simple_client/simple_client.rs.html#61 - https://github.com/gtk-rs/gtk3-rs/blob/master/examples/multi_window/main.rs