|
|
|
@ -32,24 +32,43 @@ Browser::Browser(
@@ -32,24 +32,43 @@ Browser::Browser(
|
|
|
|
|
* browserMain |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Init actions
|
|
|
|
|
// Init browser window actions
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_append", |
|
|
|
|
"refresh", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_append(); |
|
|
|
|
browserMain->refresh(); |
|
|
|
|
|
|
|
|
|
browserHeader->set_title( |
|
|
|
|
browserMain->get_current_tab_page_title() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
browserHeader->set_subtitle( |
|
|
|
|
browserMain->get_current_tab_page_subtitle() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_page_update", |
|
|
|
|
"debug", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_update(); |
|
|
|
|
// @TODO https://gitlab.gnome.org/GNOME/gtkmm/-/commit/5f3b82537d3daad7bda59dd01e719788070f4b6c
|
|
|
|
|
gtk_window_set_interactive_debugging( |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Tab actions
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_append", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_append(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Close
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_close", |
|
|
|
|
[this] |
|
|
|
@ -58,7 +77,6 @@ Browser::Browser(
@@ -58,7 +77,6 @@ Browser::Browser(
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Close submenu
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_close_left", |
|
|
|
|
[this] |
|
|
|
@ -83,49 +101,28 @@ Browser::Browser(
@@ -83,49 +101,28 @@ Browser::Browser(
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// History
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_page_navigation_history_try_back", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_try_back(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Tab page navigation actions
|
|
|
|
|
add_action( |
|
|
|
|
"main_tab_page_navigation_history_try_forward", |
|
|
|
|
"main_tab_page_navigation_update", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->tab_page_navigation_history_try_forward(); |
|
|
|
|
browserMain->tab_page_update(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Tool
|
|
|
|
|
add_action( |
|
|
|
|
"debug", |
|
|
|
|
"main_tab_page_navigation_history_try_back", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
// @TODO https://gitlab.gnome.org/GNOME/gtkmm/-/commit/5f3b82537d3daad7bda59dd01e719788070f4b6c
|
|
|
|
|
gtk_window_set_interactive_debugging( |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
browserMain->tab_page_navigation_history_try_back(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Hidden
|
|
|
|
|
add_action( |
|
|
|
|
"refresh", |
|
|
|
|
"main_tab_page_navigation_history_try_forward", |
|
|
|
|
[this] |
|
|
|
|
{ |
|
|
|
|
browserMain->refresh(); |
|
|
|
|
|
|
|
|
|
browserHeader->set_title( |
|
|
|
|
browserMain->get_current_tab_page_title() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
browserHeader->set_subtitle( |
|
|
|
|
browserMain->get_current_tab_page_subtitle() |
|
|
|
|
); |
|
|
|
|
browserMain->tab_page_navigation_history_try_forward(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |