mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
rename refresh action to update
This commit is contained in:
parent
abce6e44fd
commit
6cf3977a9f
11 changed files with 34 additions and 35 deletions
|
|
@ -9,7 +9,7 @@ using namespace app::browser::main::tab::page;
|
|||
|
||||
Navigation::Navigation(
|
||||
sqlite3 * db,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_RELOAD
|
||||
|
|
@ -70,7 +70,7 @@ Navigation::Navigation(
|
|||
|
||||
navigationRequest = Gtk::make_managed<navigation::Request>(
|
||||
db,
|
||||
ACTION__REFRESH,
|
||||
ACTION__UPDATE,
|
||||
ACTION__NAVIGATION_RELOAD
|
||||
);
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ void Navigation::update(
|
|||
!navigationRequest->get_host().empty() && !navigationRequest->get_path().empty()
|
||||
);
|
||||
|
||||
// Refresh history widget
|
||||
// Update history widget
|
||||
navigationHistory->update();
|
||||
|
||||
// Toggle update button sensibility
|
||||
|
|
@ -102,7 +102,7 @@ void Navigation::update(
|
|||
navigationRequest->get_text_length() > 0
|
||||
);
|
||||
|
||||
// Refresh request area (with progressbar)
|
||||
// Update request area (with progressbar)
|
||||
navigationRequest->update(
|
||||
PROGRESS_FRACTION
|
||||
);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ namespace app::browser::main::tab::page
|
|||
|
||||
Navigation(
|
||||
sqlite3 * db,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__NAVIGATION_RELOAD
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ using namespace app::browser::main::tab::page::navigation;
|
|||
// Construct
|
||||
Request::Request(
|
||||
sqlite3 * db,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__RELOAD
|
||||
) {
|
||||
// Init database
|
||||
DB::SESSION::init(
|
||||
|
|
@ -14,8 +14,8 @@ Request::Request(
|
|||
);
|
||||
|
||||
// Init actions
|
||||
action__refresh = ACTION__REFRESH;
|
||||
action__update = ACTION__UPDATE;
|
||||
action__update = ACTION__UPDATE;
|
||||
action__reload = ACTION__RELOAD;
|
||||
|
||||
// Init widget
|
||||
set_placeholder_text(
|
||||
|
|
@ -36,7 +36,7 @@ Request::Request(
|
|||
{
|
||||
parse();
|
||||
|
||||
action__refresh->activate();
|
||||
action__update->activate();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ Request::Request(
|
|||
{
|
||||
parse();
|
||||
|
||||
action__update->activate();
|
||||
action__reload->activate();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ namespace app::browser::main::tab::page::navigation
|
|||
sqlite3 * db;
|
||||
|
||||
// Actions
|
||||
Glib::RefPtr<Gio::SimpleAction> action__refresh,
|
||||
action__update;
|
||||
Glib::RefPtr<Gio::SimpleAction> action__update,
|
||||
action__reload;
|
||||
|
||||
// Extras
|
||||
double progress_fraction;
|
||||
|
|
@ -87,8 +87,8 @@ namespace app::browser::main::tab::page::navigation
|
|||
|
||||
Request(
|
||||
sqlite3 * db,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__RELOAD
|
||||
);
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue