mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename update action method
This commit is contained in:
parent
d63ba8f1ad
commit
c3df2818c6
7 changed files with 45 additions and 44 deletions
|
|
@ -37,6 +37,18 @@ Glib::ustring Tab::get_page_subtitle(
|
|||
};
|
||||
|
||||
// Actions
|
||||
void Tab::refresh(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
auto tabPage = get_tabPage(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
get_tabLabel(PAGE_NUMBER)->set_label(
|
||||
tabPage->get_title()
|
||||
);
|
||||
}
|
||||
|
||||
void Tab::append(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & REQUEST,
|
||||
|
|
@ -96,6 +108,14 @@ void Tab::close_all()
|
|||
}
|
||||
}
|
||||
|
||||
void Tab::page_navigation_update(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
get_tabPage(
|
||||
PAGE_NUMBER
|
||||
)->navigation_update();
|
||||
}
|
||||
|
||||
bool Tab::page_navigation_history_try_back(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
|
|
@ -112,26 +132,6 @@ bool Tab::page_navigation_history_try_forward(
|
|||
)->navigation_history_try_forward();
|
||||
}
|
||||
|
||||
void Tab::refresh(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
auto tabPage = get_tabPage(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
get_tabLabel(PAGE_NUMBER)->set_label(
|
||||
tabPage->get_title()
|
||||
);
|
||||
}
|
||||
|
||||
void Tab::page_update(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
get_tabPage(
|
||||
PAGE_NUMBER
|
||||
)->update();
|
||||
}
|
||||
|
||||
// Private helpers
|
||||
tab::Label * Tab::get_tabLabel(
|
||||
const int & PAGE_NUMBER
|
||||
|
|
|
|||
|
|
@ -58,17 +58,17 @@ namespace app::browser::main
|
|||
void close_right();
|
||||
void close_all();
|
||||
|
||||
void page_update(
|
||||
void page_navigation_update(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
bool page_navigation_history_try_back(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
bool page_navigation_history_try_back(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
bool page_navigation_history_try_forward(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
bool page_navigation_history_try_forward(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ void Page::refresh(
|
|||
);
|
||||
}
|
||||
|
||||
void Page::update(
|
||||
void Page::navigation_update(
|
||||
const bool & HISTORY
|
||||
) {
|
||||
// Update navigation history
|
||||
|
|
@ -244,7 +244,7 @@ void Page::update(
|
|||
"gemini://" + pageNavigation->get_request_text()
|
||||
);
|
||||
|
||||
update();
|
||||
navigation_update();
|
||||
}
|
||||
|
||||
else
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ namespace app::browser::main::tab
|
|||
const double & PROGRESS
|
||||
);
|
||||
|
||||
void update(
|
||||
void navigation_update(
|
||||
const bool & HISTORY = false
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue