mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
init browser actions, add menu items
This commit is contained in:
parent
930cb663ba
commit
1c1907741d
5 changed files with 99 additions and 35 deletions
|
|
@ -1,4 +1,7 @@
|
|||
use gtk::MenuButton;
|
||||
use gtk::{
|
||||
gio,
|
||||
MenuButton
|
||||
};
|
||||
|
||||
pub fn new() -> MenuButton
|
||||
{
|
||||
|
|
@ -10,5 +13,21 @@ pub fn new() -> MenuButton
|
|||
|
||||
.build();
|
||||
|
||||
return menu;
|
||||
let model = gio::Menu::new();
|
||||
|
||||
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