diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 7a4ba5b7..afd194fa 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -38,21 +38,8 @@ Main::Main( } // Actions -void Main::update() -{ - mainTab->update( - mainTab->get_current_page() - ); -}; - -void Main::tab_append() -{ - mainTab->append( - _("New tab"), - true - ); -}; +/// Session void Main::clean() { mainTab->clean(); @@ -68,6 +55,15 @@ void Main::save() mainTab->save(); }; +/// Tab actions +void Main::tab_append() +{ + mainTab->append( + _("New tab"), + true + ); +}; + void Main::tab_close() { mainTab->close( @@ -90,6 +86,7 @@ void Main::tab_close_all() mainTab->close_all(); }; +//// Tab page navigation void Main::tab_page_navigation_reload() { mainTab->page_navigation_reload( mainTab->get_current_page(), // @TODO @@ -97,6 +94,7 @@ void Main::tab_page_navigation_reload() { ); }; +///// Tab page navigation history void Main::tab_page_navigation_history_back() { mainTab->page_navigation_history_back( @@ -111,6 +109,14 @@ void Main::tab_page_navigation_history_forward() ); }; +/// Other +void Main::update() +{ + mainTab->update( + mainTab->get_current_page() + ); +}; + // Getters Glib::ustring Main::get_tab_page_title() { diff --git a/src/app/browser/main.hpp b/src/app/browser/main.hpp index cfbf8c4d..0b2d8fe0 100644 --- a/src/app/browser/main.hpp +++ b/src/app/browser/main.hpp @@ -37,21 +37,22 @@ namespace app::browser ); // Actions - void update(); void clean(); void restore(); void save(); - void tab_append(); + void tab_append(); + + void tab_close_all(); + void tab_close_left(); + void tab_close_right(); + void tab_close(); - void tab_close_all(); - void tab_close_left(); - void tab_close_right(); - void tab_close(); + void tab_page_navigation_reload(); + void tab_page_navigation_history_back(); + void tab_page_navigation_history_forward(); - void tab_page_navigation_reload(); - void tab_page_navigation_history_back(); - void tab_page_navigation_history_forward(); + void update(); // Getters Glib::ustring get_tab_page_title();