mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update methods namespace
This commit is contained in:
parent
f834d783ef
commit
c77bfbbc7b
11 changed files with 60 additions and 35 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue