mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
rename refresh method to update
This commit is contained in:
parent
63da1b1e76
commit
c574d6e8bf
21 changed files with 31 additions and 31 deletions
|
|
@ -63,9 +63,9 @@ Page::Page(
|
|||
}
|
||||
|
||||
// Actions
|
||||
void Page::refresh()
|
||||
void Page::update()
|
||||
{
|
||||
pageNavigation->refresh(
|
||||
pageNavigation->update(
|
||||
progress_fraction
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ namespace app::browser::main::tab
|
|||
);
|
||||
|
||||
// Actions
|
||||
void refresh();
|
||||
void update();
|
||||
|
||||
int save(
|
||||
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ Navigation::Navigation(
|
|||
}
|
||||
|
||||
// Actions
|
||||
void Navigation::refresh(
|
||||
void Navigation::update(
|
||||
const double & PROGRESS_FRACTION
|
||||
) {
|
||||
// Toggle base button sensibility
|
||||
|
|
@ -95,15 +95,15 @@ void Navigation::refresh(
|
|||
);
|
||||
|
||||
// Refresh history widget
|
||||
navigationHistory->refresh();
|
||||
navigationHistory->update();
|
||||
|
||||
// Toggle update button sensibility
|
||||
navigationUpdate->refresh(
|
||||
navigationUpdate->update(
|
||||
navigationRequest->get_text_length() > 0
|
||||
);
|
||||
|
||||
// Refresh request area (with progressbar)
|
||||
navigationRequest->refresh(
|
||||
navigationRequest->update(
|
||||
PROGRESS_FRACTION
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ namespace app::browser::main::tab::page
|
|||
);
|
||||
|
||||
// Actions
|
||||
void refresh(
|
||||
void update(
|
||||
const double & PROGRESS_FRACTION
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,18 +30,18 @@ History::History(
|
|||
}
|
||||
|
||||
// Actions
|
||||
void History::refresh()
|
||||
void History::update()
|
||||
{
|
||||
Memory match;
|
||||
|
||||
historyBack->refresh(
|
||||
historyBack->update(
|
||||
try_back(
|
||||
match,
|
||||
false
|
||||
)
|
||||
);
|
||||
|
||||
historyForward->refresh(
|
||||
historyForward->update(
|
||||
try_forward(
|
||||
match,
|
||||
false
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace app::browser::main::tab::page::navigation
|
|||
const bool & UPDATE_MEMORY_INDEX
|
||||
);
|
||||
|
||||
void refresh();
|
||||
void update();
|
||||
|
||||
void save(); // @TODO save history to the permanent storage
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ Back::Back(
|
|||
);
|
||||
}
|
||||
|
||||
void Back::refresh(
|
||||
void Back::update(
|
||||
const bool & ENABLED
|
||||
) {
|
||||
set_sensitive(
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation::history
|
|||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__BACK
|
||||
);
|
||||
|
||||
void refresh(
|
||||
void update(
|
||||
const bool & ENABLED
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ Forward::Forward(
|
|||
);
|
||||
}
|
||||
|
||||
void Forward::refresh(
|
||||
void Forward::update(
|
||||
const bool & ENABLED
|
||||
) {
|
||||
set_sensitive(
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation::history
|
|||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__FORWARD
|
||||
);
|
||||
|
||||
void refresh(
|
||||
void update(
|
||||
const bool & ENABLED
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ Request::Request(
|
|||
}
|
||||
|
||||
// Actions
|
||||
void Request::refresh(
|
||||
void Request::update(
|
||||
const double & PROGRESS_FRACTION
|
||||
) {
|
||||
// Update progress
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ namespace app::browser::main::tab::page::navigation
|
|||
);
|
||||
|
||||
// Actions
|
||||
void refresh(
|
||||
void update(
|
||||
const double & PROGRESS_FRACTION
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ Update::Update(
|
|||
);
|
||||
}
|
||||
|
||||
void Update::refresh(
|
||||
void Update::update(
|
||||
const bool & ENABLED
|
||||
) {
|
||||
set_sensitive(
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation
|
|||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
);
|
||||
|
||||
void refresh(
|
||||
void update(
|
||||
const bool & ENABLED
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue