From ac650c3678fb028536d85e042c6cb30222ccc386 Mon Sep 17 00:00:00 2001 From: doryan Date: Sat, 17 Aug 2024 21:39:01 +0400 Subject: [PATCH] feat: add alias MenuActions --- src/view/components/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/view/components/mod.rs b/src/view/components/mod.rs index 47e70dc..c649656 100644 --- a/src/view/components/mod.rs +++ b/src/view/components/mod.rs @@ -1,8 +1,12 @@ -pub mod about; +pub mod dialogues; pub mod info_bar; pub mod input; pub mod menu; pub mod pages; pub mod tabs; +pub type MenuActions<'a> = (fn(&SimpleAction, Option<&Variant>), &'a str, &'a str); + +use gio::{glib::Variant, SimpleAction}; + use crate::model::builder_traits;