Browse Source

use linked page_number arguments

CPP-GTK4
yggverse 3 months ago
parent
commit
8b55faef35
  1. 8
      src/app/browser/main/tab.cpp
  2. 8
      src/app/browser/main/tab.hpp

8
src/app/browser/main/tab.cpp

@ -31,7 +31,7 @@ Tab::~Tab() = default;
// Getters // Getters
Glib::ustring Tab::get_label_text( Glib::ustring Tab::get_label_text(
int page_number const int & page_number
) { ) {
auto pageWidget = get_nth_page( auto pageWidget = get_nth_page(
page_number page_number
@ -75,7 +75,7 @@ void Tab::append(
}; };
void Tab::close( void Tab::close(
int page_number const int & page_number
) { ) {
remove_page( remove_page(
page_number page_number
@ -102,7 +102,7 @@ void Tab::close_all()
} }
void Tab::update( void Tab::update(
int page_number const int & page_number
) { ) {
auto pageWidget = get_nth_page( auto pageWidget = get_nth_page(
page_number page_number
@ -118,7 +118,7 @@ void Tab::update(
} // @TODO } // @TODO
void Tab::refresh( void Tab::refresh(
int page_number const int & page_number
) { ) {
auto pageWidget = get_nth_page( auto pageWidget = get_nth_page(
page_number page_number

8
src/app/browser/main/tab.hpp

@ -19,7 +19,7 @@ namespace app::browser::main
~Tab(); ~Tab();
Glib::ustring get_label_text( Glib::ustring get_label_text(
int page_number const int & page_number
); );
void append( void append(
@ -28,7 +28,7 @@ namespace app::browser::main
); );
void close( void close(
int page_number const int & page_number
); );
void close_left(); void close_left();
@ -36,11 +36,11 @@ namespace app::browser::main
void close_all(); void close_all();
void refresh( void refresh(
int page_number const int & page_number
); );
void update( void update(
int page_number const int & page_number
); );
}; };
} }

Loading…
Cancel
Save