draft history push method

This commit is contained in:
yggverse 2024-08-29 04:02:38 +03:00
parent 8d74798edd
commit 8118613a1f
5 changed files with 28 additions and 0 deletions

View File

@ -87,6 +87,11 @@ void Page::refresh()
void Page::update() void Page::update()
{ {
// Update navigation history
pageNavbar->history_push(
pageNavbar->get_request_text()
);
// Update page extras // Update page extras
set( set(
pageNavbar->get_request_host(), pageNavbar->get_request_host(),

View File

@ -96,6 +96,14 @@ Navbar::~Navbar()
}; };
// Actions // Actions
void Navbar::history_push(
const Glib::ustring & VALUE
) {
navbarHistory->push(
VALUE
);
}
void Navbar::refresh() void Navbar::refresh()
{ {
// Toggle base button sensibility // Toggle base button sensibility

View File

@ -38,6 +38,10 @@ namespace app::browser::main::tab::page
~Navbar(); ~Navbar();
// Actions // Actions
void history_push(
const Glib::ustring & VALUE
);
void refresh(); void refresh();
// Setters // Setters

View File

@ -29,6 +29,13 @@ History::~History()
delete forward; delete forward;
}; };
// Actions
void History::push(
const Glib::ustring & VALUE
) {
// @TODO
}
void History::refresh() void History::refresh()
{ {
back->set_sensitive( back->set_sensitive(

View File

@ -30,6 +30,10 @@ namespace app::browser::main::tab::page::navbar
~History(); ~History();
void push(
const Glib::ustring & VALUE
);
void refresh(); void refresh();
}; };
} }