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

@ -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(