Set up the configuration action
This commit is contained in:
parent
3998538e88
commit
0bf6e079a2
|
@ -76,14 +76,6 @@ fn main() {
|
|||
});
|
||||
app.add_action(&action_config);
|
||||
|
||||
app.connect_startup(|app| {
|
||||
println!("connect_startup");
|
||||
let menu_model = gio::Menu::new();
|
||||
menu_model.append(Some("Quit"), None);
|
||||
menu_model.append(Some("Configuration"), Some("show-config"));
|
||||
app.set_menubar(Some(&menu_model));
|
||||
});
|
||||
|
||||
app.connect_activate({
|
||||
let runtime = runtime.clone();
|
||||
move |app| {
|
||||
|
|
|
@ -13,12 +13,11 @@ impl Default for LayoutPrivate {
|
|||
fn default() -> Self {
|
||||
let header = adw::HeaderBar::builder()
|
||||
.title_widget(>k::Label::new(Some("Placeholder Title")))
|
||||
.show_start_title_buttons(true)
|
||||
.show_end_title_buttons(true)
|
||||
.build();
|
||||
|
||||
let app_menu = gio::Menu::new();
|
||||
app_menu.append(Some("Configuration"), Some("show-config"));
|
||||
let menu_item = gio::MenuItem::new(Some("Configuration"), Some("app.show-config"));
|
||||
app_menu.append_item(&menu_item);
|
||||
|
||||
let hamburger = gtk::MenuButton::builder()
|
||||
.icon_name("open-menu-symbolic")
|
||||
|
|
Loading…
Reference in New Issue