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 @@ Page::Page(
|
|||
const MIME & MIME,
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & DESCRIPTION,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_RELOAD
|
||||
|
|
@ -21,7 +21,7 @@ Page::Page(
|
|||
progress_fraction = 0;
|
||||
|
||||
// Init actions
|
||||
action__refresh = ACTION__REFRESH;
|
||||
action__update = ACTION__UPDATE;
|
||||
|
||||
// Init database
|
||||
DB::SESSION::init(
|
||||
|
|
@ -31,7 +31,7 @@ Page::Page(
|
|||
// Init components
|
||||
pageNavigation = Gtk::make_managed<page::Navigation>(
|
||||
this->db,
|
||||
ACTION__REFRESH,
|
||||
ACTION__UPDATE,
|
||||
ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
ACTION__PAGE_NAVIGATION_RELOAD
|
||||
|
|
@ -56,8 +56,7 @@ Page::Page(
|
|||
signal_realize().connect(
|
||||
[this]
|
||||
{
|
||||
// Refresh parent window
|
||||
action__refresh->activate();
|
||||
action__update->activate();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ namespace app::browser::main::tab
|
|||
double progress_fraction;
|
||||
|
||||
// Actions
|
||||
Glib::RefPtr<Gio::SimpleAction> action__refresh;
|
||||
Glib::RefPtr<Gio::SimpleAction> action__update;
|
||||
|
||||
// Database
|
||||
sqlite3 * db;
|
||||
|
|
@ -111,7 +111,7 @@ namespace app::browser::main::tab
|
|||
const MIME & MIME,
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & DESCRIPTION,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_RELOAD
|
||||
|
|
|
|||
|
|
@ -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