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()
{
// Update navigation history
pageNavbar->history_push(
pageNavbar->get_request_text()
);
// Update page extras
set(
pageNavbar->get_request_host(),

View File

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

View File

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

View File

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

View File

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