mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
rename request entry
This commit is contained in:
parent
3a7dcea23f
commit
5a4fba93f1
2 changed files with 20 additions and 17 deletions
|
|
@ -121,7 +121,9 @@
|
||||||
"label":"Go"
|
"label":"Go"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"address":
|
"entry":
|
||||||
|
{
|
||||||
|
"request":
|
||||||
{
|
{
|
||||||
"placeholder":"URL or any search term...",
|
"placeholder":"URL or any search term...",
|
||||||
"length":
|
"length":
|
||||||
|
|
@ -129,6 +131,7 @@
|
||||||
"max":1024
|
"max":1024
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"body":
|
"body":
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class Page
|
||||||
$forward,
|
$forward,
|
||||||
$go;
|
$go;
|
||||||
|
|
||||||
public \GtkEntry $address;
|
public \GtkEntry $request;
|
||||||
|
|
||||||
public \GtkLabel $content,
|
public \GtkLabel $content,
|
||||||
$status;
|
$status;
|
||||||
|
|
@ -174,18 +174,18 @@ class Page
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Address field
|
// Request field
|
||||||
$this->address = new \GtkEntry;
|
$this->request = new \GtkEntry;
|
||||||
|
|
||||||
$this->address->set_placeholder_text(
|
$this->request->set_placeholder_text(
|
||||||
$this->config->header->address->placeholder
|
$this->config->header->entry->request->placeholder
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->address->set_max_length(
|
$this->request->set_max_length(
|
||||||
$this->config->header->address->length->max
|
$this->config->header->entry->request->length->max
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->address->connect(
|
$this->request->connect(
|
||||||
'activate',
|
'activate',
|
||||||
function ($entry)
|
function ($entry)
|
||||||
{
|
{
|
||||||
|
|
@ -196,7 +196,7 @@ class Page
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->header->pack_start(
|
$this->header->pack_start(
|
||||||
$this->address,
|
$this->request,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
0
|
0
|
||||||
|
|
@ -212,7 +212,7 @@ class Page
|
||||||
function ($entry)
|
function ($entry)
|
||||||
{
|
{
|
||||||
$this->open(
|
$this->open(
|
||||||
$this->address->get_text()
|
$this->request->get_text()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -280,7 +280,7 @@ class Page
|
||||||
if ($address->isRelative())
|
if ($address->isRelative())
|
||||||
{
|
{
|
||||||
$base = new \Yggverse\Net\Address(
|
$base = new \Yggverse\Net\Address(
|
||||||
$this->address->get_text()
|
$this->request->get_text()
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($absolute = $address->getAbsolute($base))
|
if ($absolute = $address->getAbsolute($base))
|
||||||
|
|
@ -389,8 +389,8 @@ class Page
|
||||||
$url
|
$url
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update address field by requested
|
// Update request field by requested
|
||||||
$this->address->set_text(
|
$this->request->set_text(
|
||||||
$url
|
$url
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue