From 3998538e8856bf6e7a12a7b2db86a6193f28a673 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 23 Aug 2023 17:31:34 -0400 Subject: [PATCH] Set up the hamburger menu --- kifu/gtk/src/ui/layout.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kifu/gtk/src/ui/layout.rs b/kifu/gtk/src/ui/layout.rs index 16cb406..f669c2a 100644 --- a/kifu/gtk/src/ui/layout.rs +++ b/kifu/gtk/src/ui/layout.rs @@ -16,6 +16,17 @@ impl Default for LayoutPrivate { .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 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(); Self {