|
|
|
@ -5,14 +5,14 @@ using namespace app::browser::header;
@@ -5,14 +5,14 @@ using namespace app::browser::header;
|
|
|
|
|
Menu::Menu( |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__DEBUG, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__QUIT, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__RESTORE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__SAVE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_APPEND, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ACTIVE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ALL, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_SESSION_RESTORE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_SESSION_SAVE |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
|
) { |
|
|
|
|
// Init widget
|
|
|
|
|
set_tooltip_text( |
|
|
|
@ -73,27 +73,6 @@ Menu::Menu(
@@ -73,27 +73,6 @@ Menu::Menu(
|
|
|
|
|
MENU__MAIN_TAB_PAGE |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_SESSION = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_SESSION->append( |
|
|
|
|
_("Restore"), |
|
|
|
|
get_action_detailed_name( |
|
|
|
|
ACTION__MAIN_TAB_SESSION_RESTORE |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_SESSION->append( |
|
|
|
|
_("Save"), |
|
|
|
|
get_action_detailed_name( |
|
|
|
|
ACTION__MAIN_TAB_SESSION_SAVE |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB->append_submenu( |
|
|
|
|
_("Session"), |
|
|
|
|
MENU__MAIN_TAB_SESSION |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TAB_CLOSE = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_TAB_CLOSE->append( |
|
|
|
@ -136,6 +115,27 @@ Menu::Menu(
@@ -136,6 +115,27 @@ Menu::Menu(
|
|
|
|
|
MENU__MAIN_TAB |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_SESSION = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_SESSION->append( |
|
|
|
|
_("Restore"), |
|
|
|
|
get_action_detailed_name( |
|
|
|
|
ACTION__RESTORE |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_SESSION->append( |
|
|
|
|
_("Save"), |
|
|
|
|
get_action_detailed_name( |
|
|
|
|
ACTION__SAVE |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
MENU__MAIN->append_submenu( |
|
|
|
|
_("Session"), |
|
|
|
|
MENU__MAIN_SESSION |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto MENU__MAIN_TOOLS = Gio::Menu::create(); |
|
|
|
|
|
|
|
|
|
MENU__MAIN_TOOLS->append( |
|
|
|
|