mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update history actions api
This commit is contained in:
parent
9ef5b169d3
commit
0a09de1fdd
12 changed files with 106 additions and 109 deletions
|
|
@ -242,12 +242,34 @@ void Page::navigation_update(
|
|||
}
|
||||
}
|
||||
|
||||
bool Page::navigation_history_try_back()
|
||||
void Page::navigation_history_back()
|
||||
{
|
||||
return pageNavigation->history_try_back();
|
||||
Glib::ustring request;
|
||||
|
||||
if (pageNavigation->try_history_back(request))
|
||||
{
|
||||
pageNavigation->set_request_text(
|
||||
request
|
||||
);
|
||||
|
||||
navigation_update(
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
bool Page::navigation_history_try_forward()
|
||||
void Page::navigation_history_forward()
|
||||
{
|
||||
return pageNavigation->history_try_forward();
|
||||
Glib::ustring request;
|
||||
|
||||
if (pageNavigation->try_history_forward(request))
|
||||
{
|
||||
pageNavigation->set_request_text(
|
||||
request
|
||||
);
|
||||
|
||||
navigation_update(
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue