Browse Source

rename methods

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

6
src/app/browser/main/tab/page.cpp

@ -75,12 +75,12 @@ Glib::ustring Page::get_subtitle()
// Actions // Actions
void Page::back() void Page::back()
{ {
pageNavbar->back(); pageNavbar->history_back();
} }
void Page::forward() void Page::forward()
{ {
pageNavbar->forward(); pageNavbar->history_forward();
} }
void Page::refresh( void Page::refresh(
@ -104,7 +104,7 @@ void Page::refresh(
void Page::update() void Page::update()
{ {
// Update navigation history // Update navigation history
pageNavbar->push( pageNavbar->history_push(
pageNavbar->get_request_text() pageNavbar->get_request_text()
); );

6
src/app/browser/main/tab/page/navbar.cpp

@ -87,7 +87,7 @@ Navbar::Navbar(
} }
// Actions // Actions
void Navbar::back() void Navbar::history_back()
{ {
navbar::History::Memory match; navbar::History::Memory match;
@ -101,7 +101,7 @@ void Navbar::back()
} }
} }
void Navbar::forward() void Navbar::history_forward()
{ {
navbar::History::Memory match; navbar::History::Memory match;
@ -115,7 +115,7 @@ void Navbar::forward()
} }
} }
void Navbar::push( void Navbar::history_push(
const Glib::ustring & VALUE const Glib::ustring & VALUE
) { ) {
navbarHistory->push( navbarHistory->push(

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

@ -37,11 +37,9 @@ namespace app::browser::main::tab::page
); );
// Actions // Actions
void back(); void history_back();
void history_forward();
void forward(); void history_push(
void push(
const Glib::ustring & VALUE const Glib::ustring & VALUE
); );

Loading…
Cancel
Save