rename methods

This commit is contained in:
yggverse 2024-08-27 17:13:18 +03:00
parent a493ed1f95
commit 659588cd9e
2 changed files with 8 additions and 8 deletions

View File

@ -29,13 +29,13 @@ Tab::~Tab() = default;
Glib::ustring Tab::get_page_title( Glib::ustring Tab::get_page_title(
const int & PAGE_NUMBER const int & PAGE_NUMBER
) { ) {
return get_tabPage_ptr(PAGE_NUMBER)->get_title(); return get_tabPage(PAGE_NUMBER)->get_title();
}; };
Glib::ustring Tab::get_page_subtitle( Glib::ustring Tab::get_page_subtitle(
const int & PAGE_NUMBER const int & PAGE_NUMBER
) { ) {
return get_tabPage_ptr(PAGE_NUMBER)->get_subtitle(); return get_tabPage(PAGE_NUMBER)->get_subtitle();
}; };
// Actions // Actions
@ -101,11 +101,11 @@ void Tab::close_all()
void Tab::refresh( void Tab::refresh(
const int & PAGE_NUMBER const int & PAGE_NUMBER
) { ) {
auto tabPage = get_tabPage_ptr( auto tabPage = get_tabPage(
PAGE_NUMBER PAGE_NUMBER
); );
get_tabLabel_ptr(PAGE_NUMBER)->set_label( get_tabLabel(PAGE_NUMBER)->set_label(
tabPage->get_title() tabPage->get_title()
); );
@ -130,7 +130,7 @@ void Tab::update(
} // @TODO } // @TODO
// Private helpers // Private helpers
tab::Label * Tab::get_tabLabel_ptr( tab::Label * Tab::get_tabLabel(
const int & PAGE_NUMBER const int & PAGE_NUMBER
) { ) {
auto pageWidget = get_nth_page( auto pageWidget = get_nth_page(
@ -154,7 +154,7 @@ tab::Label * Tab::get_tabLabel_ptr(
return (tab::Label *) labelWidget; return (tab::Label *) labelWidget;
} }
tab::Page * Tab::get_tabPage_ptr( tab::Page * Tab::get_tabPage(
const int & PAGE_NUMBER const int & PAGE_NUMBER
) { ) {
auto pageWidget = get_nth_page( auto pageWidget = get_nth_page(

View File

@ -18,11 +18,11 @@ namespace app::browser::main
const bool REORDERABLE = true; const bool REORDERABLE = true;
const bool SCROLLABLE = true; const bool SCROLLABLE = true;
tab::Label * get_tabLabel_ptr( tab::Label * get_tabLabel(
const int & PAGE_NUMBER const int & PAGE_NUMBER
); );
tab::Page * get_tabPage_ptr( tab::Page * get_tabPage(
const int & PAGE_NUMBER const int & PAGE_NUMBER
); );