create separated wrapper for home action

This commit is contained in:
yggverse 2024-11-10 10:46:46 +02:00
parent b4dee17768
commit 4afa2c204c
15 changed files with 136 additions and 62 deletions

View file

@ -20,7 +20,6 @@ impl Menu {
action_page_close: SimpleAction,
action_page_history_back: SimpleAction,
action_page_history_forward: SimpleAction,
action_page_home: SimpleAction,
) -> Self {
let main = gtk::gio::Menu::new();
@ -44,7 +43,14 @@ impl Menu {
let navigation = gtk::gio::Menu::new();
navigation.append(Some("Home"), Some(&detailed_action_name(action_page_home)));
navigation.append(
Some("Home"),
Some(&format!(
"{}.{}",
window_action.id(),
window_action.home().id()
)),
);
main.append_section(None, &navigation);