|
| 1 | +<!-- |
| 2 | +SPDX-FileCopyrightText: 2022 Deren Vural |
| 3 | +SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | +--> |
| 5 | + |
| 6 | +# Description |
| 7 | + |
| 8 | +This project is a rewrite of gnome-nvidia-extension in Rust - intended as a practise Rust project. |
| 9 | + |
| 10 | +# Usage |
| 11 | + |
| 12 | +Use the following to compile the project: |
| 13 | + |
| 14 | +```bash |
| 15 | +cargo clean; cargo run |
| 16 | +``` |
| 17 | + |
| 18 | +# Resources |
| 19 | + |
| 20 | +## Original Extension |
| 21 | + |
| 22 | +[Original version, written in GTK-JS](https://github.com/ethanwharris/gnome-nvidia-extension) |
| 23 | + |
| 24 | +## Documentation |
| 25 | + |
| 26 | +- [GTK-RS Project website](https://gtk-rs.org/) |
| 27 | +- [GTK-RS Book](https://gtk-rs.org/gtk4-rs/stable/latest/book/introduction.html) |
| 28 | +- [GTK-RS Documentation](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/) |
| 29 | +- [GLib Documentation](https://docs.gtk.org/glib/index.html) |
| 30 | +- [GObject Documentation](https://docs.gtk.org/gobject/index.html) |
| 31 | + |
| 32 | +## GitHub |
| 33 | + |
| 34 | +- [GTK-RS Organisation on GitHub](https://github.com/gtk-rs) |
| 35 | +- [GTK-RS Core](https://github.com/gtk-rs/gtk-rs-core) |
| 36 | +- [GTK3-RS](https://github.com/gtk-rs/gtk3-rs) |
| 37 | +- [GTK4-RS](https://github.com/gtk-rs/gtk4-rs) |
| 38 | + |
| 39 | +## Crates |
| 40 | + |
| 41 | +### GTK libraries |
| 42 | + |
| 43 | +- [GTK4](https://crates.io/crates/gtk4) |
| 44 | +- [GLib](https://crates.io/crates/glib/0.15.12) |
| 45 | +- [Gio](https://crates.io/crates/gio/0.15.12) |
| 46 | + |
| 47 | +### System Tray Library |
| 48 | + |
| 49 | +[libappindicator](https://crates.io/crates/libappindicator/0.7.1) |
| 50 | + |
| 51 | +There are other ways of doing this - libappindicator seems broken.. |
| 52 | + |
| 53 | +## Examples |
| 54 | + |
| 55 | +- [GObject Subclassing (GTK3)](https://github.com/gtk-rs/gtk3-rs/tree/master/examples/basic_subclass) |
| 56 | +- [GObject Subclassing (GTK4)](https://github.com/gtk-rs/gtk4-rs/tree/8b0c4cbd35912b9f8685d40f796b0806c52119ab/book/listings/todo/1) |
| 57 | +- [System Tray (libappindicator)](https://github.com/tauri-apps/libappindicator-rs/blob/main/examples/hello.rs) |
| 58 | + |
| 59 | +## System Tray Discussion |
| 60 | + |
| 61 | +[Reddit Post](https://www.reddit.com/r/gnome/comments/7x7qc6/by_what_logic_was_system_tray_removed/) |
| 62 | + |
| 63 | +The post above has possible alternatives to libappindicator in the comments |
| 64 | + |
| 65 | +# License |
| 66 | + |
| 67 | +[](http://www.gnu.org/licenses/gpl-3.0) |
0 commit comments