update methods namespace

This commit is contained in:
yggverse 2024-09-05 02:50:41 +03:00
parent f834d783ef
commit c77bfbbc7b
11 changed files with 60 additions and 35 deletions

View file

@ -96,20 +96,20 @@ void Tab::close_all()
}
}
void Tab::page_navigation_history_back(
bool Tab::page_navigation_history_try_back(
const int & PAGE_NUMBER
) {
get_tabPage(
return get_tabPage(
PAGE_NUMBER
)->navigation_history_back();
)->navigation_history_try_back();
}
void Tab::page_navigation_history_forward(
bool Tab::page_navigation_history_try_forward(
const int & PAGE_NUMBER
) {
get_tabPage(
return get_tabPage(
PAGE_NUMBER
)->navigation_history_forward();
)->navigation_history_try_forward();
}
void Tab::refresh(

View file

@ -54,11 +54,11 @@ namespace app::browser::main
void close_right();
void close_all();
void page_navigation_history_back(
bool page_navigation_history_try_back(
const int & PAGE_NUMBER
);
void page_navigation_history_forward(
bool page_navigation_history_try_forward(
const int & PAGE_NUMBER
);

View file

@ -73,14 +73,14 @@ Glib::ustring Page::get_subtitle()
}
// Actions
void Page::navigation_history_back()
bool Page::navigation_history_try_back()
{
pageNavigation->history_back();
return pageNavigation->history_try_back();
}
void Page::navigation_history_forward()
bool Page::navigation_history_try_forward()
{
pageNavigation->history_forward();
return pageNavigation->history_try_forward();
}
void Page::refresh(

View file

@ -54,8 +54,8 @@ namespace app::browser::main::tab
Glib::ustring get_subtitle();
// Actions
void navigation_history_back();
void navigation_history_forward();
bool navigation_history_try_back();
bool navigation_history_try_forward();
void refresh(
const Glib::ustring & TITLE,

View file

@ -87,7 +87,7 @@ Navigation::Navigation(
}
// Actions
void Navigation::history_back()
bool Navigation::history_try_back()
{
navigation::History::Memory match;
@ -98,10 +98,14 @@ void Navigation::history_back()
);
navigationUpdate->activate();
return true;
}
return false;
}
void Navigation::history_forward()
bool Navigation::history_try_forward()
{
navigation::History::Memory match;
@ -112,7 +116,11 @@ void Navigation::history_forward()
);
navigationUpdate->activate();
return true;
}
return false;
}
void Navigation::history_add(

View file

@ -41,9 +41,8 @@ namespace app::browser::main::tab::page
const Glib::ustring & VALUE
);
void history_back();
void history_forward();
bool history_try_back();
bool history_try_forward();
void refresh();

View file

@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navigation::history;
Back::Back()
{
set_action_name(
"win.main_tab_page_navigation_history_back"
"win.main_tab_page_navigation_history_try_back"
);
set_icon_name(

View file

@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navigation::history;
Forward::Forward()
{
set_action_name(
"win.main_tab_page_navigation_history_forward"
"win.main_tab_page_navigation_history_try_forward"
);
set_icon_name(