Browse Source

rename action methods

CPP-GTK4
yggverse 2 months ago
parent
commit
3760d50769
  1. 4
      src/app/browser.cpp
  2. 4
      src/app/browser/main.cpp
  3. 5
      src/app/browser/main.hpp

4
src/app/browser.cpp

@ -16,8 +16,8 @@ Browser::Browser(
browserMain->update(); browserMain->update();
browserHeader->update( browserHeader->update(
browserMain->get_current_tab_page_title(), browserMain->get_tab_page_title(),
browserMain->get_current_tab_page_description() browserMain->get_tab_page_description()
); );
} }
); );

4
src/app/browser/main.cpp

@ -112,14 +112,14 @@ void Main::tab_page_navigation_history_forward()
}; };
// Getters // Getters
Glib::ustring Main::get_current_tab_page_title() Glib::ustring Main::get_tab_page_title()
{ {
return mainTab->get_page_title( return mainTab->get_page_title(
mainTab->get_current_page() mainTab->get_current_page()
); );
}; };
Glib::ustring Main::get_current_tab_page_description() Glib::ustring Main::get_tab_page_description()
{ {
return mainTab->get_page_description( return mainTab->get_page_description(
mainTab->get_current_page() mainTab->get_current_page()

5
src/app/browser/main.hpp

@ -50,13 +50,12 @@ namespace app::browser
void tab_close(); void tab_close();
void tab_page_navigation_reload(); void tab_page_navigation_reload();
void tab_page_navigation_history_back(); void tab_page_navigation_history_back();
void tab_page_navigation_history_forward(); void tab_page_navigation_history_forward();
// Getters // Getters
Glib::ustring get_current_tab_page_title(); Glib::ustring get_tab_page_title();
Glib::ustring get_current_tab_page_description(); Glib::ustring get_tab_page_description();
}; };
} }

Loading…
Cancel
Save