Set up the hamburger menu

This commit is contained in:
Savanni D'Gerinel 2023-08-23 17:31:34 -04:00
parent 793cd67218
commit 3998538e88
1 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,17 @@ impl Default for LayoutPrivate {
.show_start_title_buttons(true) .show_start_title_buttons(true)
.show_end_title_buttons(true) .show_end_title_buttons(true)
.build(); .build();
let app_menu = gio::Menu::new();
app_menu.append(Some("Configuration"), Some("show-config"));
let hamburger = gtk::MenuButton::builder()
.icon_name("open-menu-symbolic")
.build();
hamburger.set_menu_model(Some(&app_menu));
header.pack_end(&hamburger);
let content = adw::StatusPage::builder().title("Nothing here").build(); let content = adw::StatusPage::builder().title("Nothing here").build();
Self { Self {