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

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

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

Loading…
Cancel
Save