|
|
|
@ -89,57 +89,56 @@ Browser::Browser(
@@ -89,57 +89,56 @@ Browser::Browser(
|
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Tab page navigation actions
|
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE = add_action( |
|
|
|
|
"main_tab_page_navigation_update", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_update(); |
|
|
|
|
} |
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE = add_action( |
|
|
|
|
"main_tab_page_navigation_update", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_update(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_update", |
|
|
|
|
"<Primary>r" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_update", |
|
|
|
|
"<Primary>r" |
|
|
|
|
); |
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action( |
|
|
|
|
"main_tab_page_navigation_history_back", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_back(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action( |
|
|
|
|
"main_tab_page_navigation_history_back", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_back(); |
|
|
|
|
} |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_history_back", |
|
|
|
|
"<Primary>Left" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_history_back", |
|
|
|
|
"<Primary>Left" |
|
|
|
|
); |
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD = add_action( |
|
|
|
|
"main_tab_page_navigation_history_forward", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_forward(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD = add_action( |
|
|
|
|
"main_tab_page_navigation_history_forward", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_forward(); |
|
|
|
|
} |
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_FORWARD->set_enabled( |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_history_forward", |
|
|
|
|
"<Primary>Right" |
|
|
|
|
); |
|
|
|
|
APP->set_accel_for_action( |
|
|
|
|
"win.main_tab_page_navigation_history_forward", |
|
|
|
|
"<Primary>Right" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Init widget
|
|
|
|
|
set_title( |
|
|
|
@ -151,14 +150,13 @@ Browser::Browser(
@@ -151,14 +150,13 @@ Browser::Browser(
|
|
|
|
|
HEIGHT |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Init header widget
|
|
|
|
|
// Init components
|
|
|
|
|
browserHeader = Gtk::make_managed<browser::Header>(); |
|
|
|
|
|
|
|
|
|
set_titlebar( |
|
|
|
|
* browserHeader |
|
|
|
|
); |
|
|
|
|
set_titlebar( |
|
|
|
|
* browserHeader |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Init main widget
|
|
|
|
|
browserMain = Gtk::make_managed<browser::Main>( |
|
|
|
|
ACTION__REFRESH, |
|
|
|
|
ACTION__MAIN_TAB_CLOSE, |
|
|
|
@ -167,7 +165,7 @@ Browser::Browser(
@@ -167,7 +165,7 @@ Browser::Browser(
|
|
|
|
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
set_child( |
|
|
|
|
* browserMain |
|
|
|
|
); |
|
|
|
|
set_child( |
|
|
|
|
* browserMain |
|
|
|
|
); |
|
|
|
|
} |