|
|
@ -4,6 +4,7 @@ using namespace app::browser::main::tab::data::navbar; |
|
|
|
|
|
|
|
|
|
|
|
Request::Request() |
|
|
|
Request::Request() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// Init entry
|
|
|
|
set_placeholder_text( |
|
|
|
set_placeholder_text( |
|
|
|
_("URL or search term...") |
|
|
|
_("URL or search term...") |
|
|
|
); |
|
|
|
); |
|
|
@ -12,33 +13,24 @@ Request::Request() |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Connect events
|
|
|
|
signal_changed().connect( |
|
|
|
signal_changed().connect( |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Request::on_change |
|
|
|
activate_action( |
|
|
|
) |
|
|
|
"navbar.refresh" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
signal_activate().connect( |
|
|
|
|
|
|
|
sigc::mem_fun( |
|
|
|
|
|
|
|
* this, |
|
|
|
|
|
|
|
& Request::on_activate |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Request::~Request() = default; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Request::on_activate() |
|
|
|
signal_activate().connect( |
|
|
|
{ |
|
|
|
[this] |
|
|
|
|
|
|
|
{ |
|
|
|
activate_action( |
|
|
|
activate_action( |
|
|
|
"data.update" |
|
|
|
"data.update" |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Request::on_change() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
activate_action( |
|
|
|
|
|
|
|
"navbar.refresh" |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Request::~Request() = default; |