mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
update page refresh action
This commit is contained in:
parent
4716f3b3dc
commit
33ae9796d8
7 changed files with 20 additions and 23 deletions
|
|
@ -4,10 +4,12 @@ using namespace app::browser::main::tab::page::navigation;
|
|||
|
||||
// Construct
|
||||
Request::Request(
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
) {
|
||||
// Init actions
|
||||
action__update = ACTION__UPDATE;
|
||||
action__refresh = ACTION__REFRESH;
|
||||
action__update = ACTION__UPDATE;
|
||||
|
||||
// Init widget
|
||||
set_placeholder_text(
|
||||
|
|
@ -28,9 +30,7 @@ Request::Request(
|
|||
{
|
||||
parse();
|
||||
|
||||
activate_action(
|
||||
"navigation.refresh" // @TODO
|
||||
);
|
||||
action__refresh->activate();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ namespace app::browser::main::tab::page::navigation
|
|||
class Request : public Gtk::Entry
|
||||
{
|
||||
// Actions
|
||||
Glib::RefPtr<Gio::SimpleAction> action__update;
|
||||
Glib::RefPtr<Gio::SimpleAction> action__refresh,
|
||||
action__update;
|
||||
|
||||
// Extras
|
||||
double progress_fraction;
|
||||
|
|
@ -36,6 +37,7 @@ namespace app::browser::main::tab::page::navigation
|
|||
public:
|
||||
|
||||
Request(
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue