reorganize home action, add middle click handler

This commit is contained in:
yggverse 2025-01-26 13:07:20 +02:00
parent 418b04c86c
commit 3ee6a03c30
5 changed files with 93 additions and 30 deletions

View file

@ -0,0 +1,13 @@
use gtk::{gio::SimpleAction, glib::uuid_string_random};
pub trait Home {
fn home() -> Self;
}
impl Home for SimpleAction {
fn home() -> Self {
let home = SimpleAction::new(&uuid_string_random(), None);
home.set_enabled(false);
home
}
}