mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add open file menu item, group file items in section
This commit is contained in:
parent
330075164d
commit
fb9ef36893
5 changed files with 117 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue