From 54ce146d907ccf74f1a081e65f15006ce82a48a9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 23 Sep 2024 15:48:44 +0300 Subject: [PATCH] add new menu items --- src/browser/header/tray/menu/model.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/browser/header/tray/menu/model.rs b/src/browser/header/tray/menu/model.rs index 9b561692..7683ae82 100644 --- a/src/browser/header/tray/menu/model.rs +++ b/src/browser/header/tray/menu/model.rs @@ -7,10 +7,15 @@ pub struct Menu { impl Menu { // Construct pub fn new() -> Menu { - let model = gio::Menu::new(); let model_tab = gio::Menu::new(); + model_tab.append(Some("New"), Some("win.tab_append")); + model_tab.append(Some("Pin"), Some("win.tab_pin")); + + let model_tab_close = gio::Menu::new(); + model_tab_close.append(Some("Current"), Some("win.tab_close")); + model_tab.append_submenu(Some("Close"), &model_tab_close); - model_tab.append(Some("Append"), Some("win.tab_append")); + let model = gio::Menu::new(); model.append_submenu(Some("Tab"), &model_tab); model.append(Some("Debug"), Some("win.debug")); model.append(Some("Quit"), Some("win.quit"));