mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
create separated wrapper for home action
This commit is contained in:
parent
b4dee17768
commit
4afa2c204c
15 changed files with 136 additions and 62 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue