add open file menu item, group file items in section

This commit is contained in:
yggverse 2025-02-15 12:33:26 +02:00
parent 330075164d
commit fb9ef36893
5 changed files with 117 additions and 8 deletions

View file

@ -34,7 +34,18 @@ impl Menu for gtk::gio::Menu {
)),
);
main.append(
let main_file = gtk::gio::Menu::new();
main_file.append(
Some("Open.."),
Some(&format!(
"{}.{}",
window_action.id,
window_action.open.simple_action.name()
)),
);
main_file.append(
Some("Save as.."),
Some(&format!(
"{}.{}",
@ -43,6 +54,8 @@ impl Menu for gtk::gio::Menu {
)),
);
main.append_submenu(Some("File"), &main_file);
let main_mark = gtk::gio::Menu::new();
main_mark.append(