mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
begin global actions config implementation
This commit is contained in:
parent
f803d89f52
commit
9e481f78ce
9 changed files with 58 additions and 68 deletions
17
src/action.rs
Normal file
17
src/action.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//! Global actions config
|
||||
|
||||
use gtk::glib::VariantTy;
|
||||
|
||||
// app/browser/widget.rs
|
||||
pub const APP_BROWSER_WIDGET: &str = "app_browser_widget";
|
||||
|
||||
// group | action | variant
|
||||
pub const APP_BROWSER_WIDGET_ABOUT: (&str, &str, Option<&VariantTy>) =
|
||||
(APP_BROWSER_WIDGET, "about", None);
|
||||
|
||||
pub const APP_BROWSER_WIDGET_CLOSE: (&str, &str, Option<&VariantTy>, &[&str]) =
|
||||
(APP_BROWSER_WIDGET, "close", None, &["<Primary>i"]);
|
||||
|
||||
// group | action | variant | accels
|
||||
pub const APP_BROWSER_WIDGET_DEBUG: (&str, &str, Option<&VariantTy>, &[&str]) =
|
||||
(APP_BROWSER_WIDGET, "debug", None, &["<Primary>q"]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue