mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
reorganize home action, add middle click handler
This commit is contained in:
parent
418b04c86c
commit
3ee6a03c30
5 changed files with 93 additions and 30 deletions
13
src/app/browser/window/tab/item/action/home.rs
Normal file
13
src/app/browser/window/tab/item/action/home.rs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue