mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use canonical module subfolder tree
This commit is contained in:
parent
80783d2ae4
commit
8969899a2f
24 changed files with 0 additions and 23 deletions
17
src/browser/header/tray/menu/mod.rs
Normal file
17
src/browser/header/tray/menu/mod.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use gtk::{gio, MenuButton};
|
||||
|
||||
pub fn new() -> MenuButton {
|
||||
let menu = MenuButton::builder().tooltip_text("Menu").build();
|
||||
|
||||
let model = gio::Menu::new();
|
||||
let model_tab = gio::Menu::new();
|
||||
|
||||
model_tab.append(Some("Append"), Some("win.tab_append"));
|
||||
model.append_submenu(Some("Tab"), &model_tab);
|
||||
model.append(Some("Debug"), Some("win.debug"));
|
||||
model.append(Some("Quit"), Some("win.quit"));
|
||||
|
||||
menu.set_menu_model(Some(&model));
|
||||
|
||||
menu
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue