mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename methods
This commit is contained in:
parent
207d5079a7
commit
f834d783ef
9 changed files with 37 additions and 52 deletions
|
|
@ -96,20 +96,20 @@ void Tab::close_all()
|
|||
}
|
||||
}
|
||||
|
||||
void Tab::back(
|
||||
void Tab::page_navigation_history_back(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
get_tabPage(
|
||||
PAGE_NUMBER
|
||||
)->back();
|
||||
)->navigation_history_back();
|
||||
}
|
||||
|
||||
void Tab::forward(
|
||||
void Tab::page_navigation_history_forward(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
get_tabPage(
|
||||
PAGE_NUMBER
|
||||
)->forward();
|
||||
)->navigation_history_forward();
|
||||
}
|
||||
|
||||
void Tab::refresh(
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ namespace app::browser::main
|
|||
|
||||
Tab();
|
||||
|
||||
// Getters
|
||||
Glib::ustring get_page_title(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
|
@ -38,6 +39,7 @@ namespace app::browser::main
|
|||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
// Actions
|
||||
void append(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & REQUEST = "",
|
||||
|
|
@ -52,11 +54,11 @@ namespace app::browser::main
|
|||
void close_right();
|
||||
void close_all();
|
||||
|
||||
void back(
|
||||
void page_navigation_history_back(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
void forward(
|
||||
void page_navigation_history_forward(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,12 +73,12 @@ Glib::ustring Page::get_subtitle()
|
|||
}
|
||||
|
||||
// Actions
|
||||
void Page::back()
|
||||
void Page::navigation_history_back()
|
||||
{
|
||||
pageNavigation->history_back();
|
||||
}
|
||||
|
||||
void Page::forward()
|
||||
void Page::navigation_history_forward()
|
||||
{
|
||||
pageNavigation->history_forward();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ namespace app::browser::main::tab
|
|||
Glib::ustring get_subtitle();
|
||||
|
||||
// Actions
|
||||
void back();
|
||||
void forward();
|
||||
void navigation_history_back();
|
||||
void navigation_history_forward();
|
||||
|
||||
void refresh(
|
||||
const Glib::ustring & TITLE,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navigation::history;
|
|||
Back::Back()
|
||||
{
|
||||
set_action_name(
|
||||
"win.tab_history_back"
|
||||
"win.main_tab_page_navigation_history_back"
|
||||
);
|
||||
|
||||
set_icon_name(
|
||||
|
|
@ -19,13 +19,4 @@ Back::Back()
|
|||
set_sensitive(
|
||||
false // @TODO no effect by set_action_name
|
||||
);
|
||||
|
||||
signal_clicked().connect(
|
||||
[this]
|
||||
{
|
||||
activate_action(
|
||||
"win.tab_history_back"
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navigation::history;
|
|||
Forward::Forward()
|
||||
{
|
||||
set_action_name(
|
||||
"win.tab_history_forward"
|
||||
"win.main_tab_page_navigation_history_forward"
|
||||
);
|
||||
|
||||
set_icon_name(
|
||||
|
|
@ -19,13 +19,4 @@ Forward::Forward()
|
|||
set_sensitive(
|
||||
false // @TODO no effect by set_action_name
|
||||
);
|
||||
|
||||
signal_clicked().connect(
|
||||
[this]
|
||||
{
|
||||
activate_action(
|
||||
"win.tab_history_forward"
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue