|
|
@ -4,20 +4,30 @@ using namespace app::browser::header; |
|
|
|
|
|
|
|
|
|
|
|
Menu::Menu() |
|
|
|
Menu::Menu() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Init defaults
|
|
|
|
// Set widget defaults
|
|
|
|
set_tooltip_text( |
|
|
|
set_tooltip_text( |
|
|
|
TOOLTIP |
|
|
|
TOOLTIP |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Build tab submenu
|
|
|
|
// Build tab submenu model
|
|
|
|
tab = Gio::Menu::create(); |
|
|
|
tab = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
tab->append( |
|
|
|
tab->append( |
|
|
|
_("New tab.."), |
|
|
|
_("New tab.."), |
|
|
|
"win.tab" |
|
|
|
"win.tab_append" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Build tool submenu
|
|
|
|
tab->append( |
|
|
|
|
|
|
|
_("Close active"), |
|
|
|
|
|
|
|
"win.tab_close" |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tab->append( |
|
|
|
|
|
|
|
_("Close all"), |
|
|
|
|
|
|
|
"win.tab_close_all" |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Build tool submenu model
|
|
|
|
tool = Gio::Menu::create(); |
|
|
|
tool = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
tool->append( |
|
|
|
tool->append( |
|
|
@ -25,7 +35,7 @@ Menu::Menu() |
|
|
|
"win.debug" |
|
|
|
"win.debug" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Build main menu
|
|
|
|
// Build main menu model
|
|
|
|
main = Gio::Menu::create(); |
|
|
|
main = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
|
|
main->append_submenu( |
|
|
|
main->append_submenu( |
|
|
@ -43,6 +53,7 @@ Menu::Menu() |
|
|
|
"app.quit" |
|
|
|
"app.quit" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Apply model
|
|
|
|
set_menu_model( |
|
|
|
set_menu_model( |
|
|
|
main |
|
|
|
main |
|
|
|
); |
|
|
|
); |
|
|
|