mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update new tab api
This commit is contained in:
parent
65bc5ef6f4
commit
dd68120c10
9 changed files with 77 additions and 52 deletions
|
|
@ -3,17 +3,27 @@
|
|||
using namespace app::browser::main::tab::page::navbar;
|
||||
|
||||
// Construct
|
||||
Request::Request()
|
||||
{
|
||||
Request::Request(
|
||||
const Glib::ustring & text
|
||||
) {
|
||||
// Init entry
|
||||
set_placeholder_text(
|
||||
_("URL or search term...")
|
||||
);
|
||||
|
||||
set_hexpand(
|
||||
true
|
||||
HEXPAND
|
||||
);
|
||||
|
||||
if (!text.empty())
|
||||
{
|
||||
set_text(
|
||||
text
|
||||
);
|
||||
|
||||
parse();
|
||||
}
|
||||
|
||||
// Connect events
|
||||
signal_changed().connect(
|
||||
[this]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue