diff --git a/src/app/browser.cpp b/src/app/browser.cpp index b670a6ae..25aa7e53 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -42,7 +42,7 @@ Browser::Browser( ); add_action( - "main_tab_update", + "main_tab_page_update", [this] { browserMain->tab_update(); diff --git a/src/app/browser/header/menu.cpp b/src/app/browser/header/menu.cpp index 6f32b273..73616cb8 100644 --- a/src/app/browser/header/menu.cpp +++ b/src/app/browser/header/menu.cpp @@ -17,9 +17,17 @@ Menu::Menu() "win.main_tab_append" ); - tab->append( - _("Update"), - "win.main_tab_update" + // Build tab page submenu model + tab_page = Gio::Menu::create(); + + tab_page->append( + _("Update"), + "win.main_tab_page_update" + ); + + tab->append_submenu( + _("Page"), + tab_page ); // Build tab close submenu model diff --git a/src/app/browser/header/menu.hpp b/src/app/browser/header/menu.hpp index f60e6b89..f54a78b4 100644 --- a/src/app/browser/header/menu.hpp +++ b/src/app/browser/header/menu.hpp @@ -10,6 +10,7 @@ namespace app::browser::header class Menu : public Gtk::MenuButton { Glib::RefPtr tab, + tab_page, tab_close, tool, main; diff --git a/src/main.cpp b/src/main.cpp index 686b1ffe..830f4f79 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ int main( ); app->set_accel_for_action( - "win.main_tab_update", + "win.main_tab_page_update", "r" );