mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
12 lines
340 B
Rust
12 lines
340 B
Rust
use gtk::{gio::SimpleAction, glib::uuid_string_random};
|
|
|
|
/// [SimpleAction](https://docs.gtk.org/gio/class.SimpleAction.html) wrapper for `Escape` action of `Browser` group
|
|
pub trait Escape {
|
|
fn escape() -> Self;
|
|
}
|
|
|
|
impl Escape for SimpleAction {
|
|
fn escape() -> Self {
|
|
SimpleAction::new(&uuid_string_random(), None)
|
|
}
|
|
}
|