|
|
|
@ -51,8 +51,8 @@ Browser::Browser(
@@ -51,8 +51,8 @@ Browser::Browser(
|
|
|
|
|
"<Primary>t" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto ACTION__MAIN_TAB_CLOSE = add_action( |
|
|
|
|
"main_tab_close", |
|
|
|
|
const auto ACTION__MAIN_TAB_CLOSE_ACTIVE = add_action( |
|
|
|
|
"main_tab_close_active", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_close(); |
|
|
|
@ -79,16 +79,18 @@ Browser::Browser(
@@ -79,16 +79,18 @@ Browser::Browser(
|
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
add_action( |
|
|
|
|
const auto ACTION__MAIN_TAB_CLOSE_ALL = add_action( |
|
|
|
|
"main_tab_close_all", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_close_all(); |
|
|
|
|
} |
|
|
|
|
)->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ACTION__MAIN_TAB_CLOSE_ALL->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE = add_action( |
|
|
|
|
"main_tab_page_navigation_update", |
|
|
|
|
[this] |
|
|
|
@ -154,7 +156,8 @@ Browser::Browser(
@@ -154,7 +156,8 @@ Browser::Browser(
|
|
|
|
|
browserHeader = Gtk::make_managed<browser::Header>( |
|
|
|
|
ACTION__DEBUG, |
|
|
|
|
ACTION__MAIN_TAB_APPEND, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE_ACTIVE, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE_ALL, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
@ -166,7 +169,7 @@ Browser::Browser(
@@ -166,7 +169,7 @@ Browser::Browser(
|
|
|
|
|
|
|
|
|
|
browserMain = Gtk::make_managed<browser::Main>( |
|
|
|
|
ACTION__REFRESH, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE_ACTIVE, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD, |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
|