mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use getValue API method
This commit is contained in:
parent
42cd6ba857
commit
e43697ec0c
6 changed files with 9 additions and 17 deletions
|
|
@ -83,7 +83,7 @@ class Content
|
|||
{
|
||||
// Parse address
|
||||
$address = new \Yggverse\Net\Address(
|
||||
$this->page->navbar->request->gtk->get_text()
|
||||
$this->page->navbar->request->getValue()
|
||||
);
|
||||
|
||||
// Init new title
|
||||
|
|
@ -303,9 +303,7 @@ class Content
|
|||
$address = new \Yggverse\Net\Address(
|
||||
sprintf(
|
||||
'gemini://%s',
|
||||
trim(
|
||||
$this->page->navbar->request->gtk->get_text()
|
||||
)
|
||||
$this->page->navbar->request->getValue()
|
||||
)
|
||||
);
|
||||
|
||||
|
|
@ -328,7 +326,7 @@ class Content
|
|||
sprintf(
|
||||
'gemini://tlgs.one/search?%s', // @TODO custom provider
|
||||
urlencode(
|
||||
$this->page->navbar->request->gtk->get_text()
|
||||
$this->page->navbar->request->getValue()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ class Data
|
|||
{
|
||||
$address->toAbsolute(
|
||||
new Address(
|
||||
$this->content->page->navbar->request->gtk->get_text()
|
||||
$this->content->page->navbar->request->getValue()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,11 +13,7 @@ class Base extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Nav
|
|||
): void
|
||||
{
|
||||
$address = new \Yggverse\Net\Address(
|
||||
trim(
|
||||
strval(
|
||||
$this->navbar->request->gtk->get_text()
|
||||
)
|
||||
)
|
||||
$this->navbar->request->getValue()
|
||||
);
|
||||
|
||||
if ($address->getHost())
|
||||
|
|
@ -45,7 +41,7 @@ class Base extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Nav
|
|||
{
|
||||
$address = new \Yggverse\Net\Address(
|
||||
rtrim(
|
||||
$this->navbar->request->gtk->get_text(),
|
||||
$this->navbar->request->getValue(),
|
||||
'/'
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ class Go extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Navba
|
|||
{
|
||||
$this->gtk->set_sensitive(
|
||||
!empty(
|
||||
trim(
|
||||
$this->navbar->request->gtk->get_text()
|
||||
)
|
||||
$this->navbar->request->getValue()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Content
|
|||
public function refresh(): void
|
||||
{
|
||||
$this->search(
|
||||
$this->container->navbar->filter->gtk->get_text()
|
||||
$this->container->navbar->filter->getValue()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@ class Search extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na
|
|||
): void
|
||||
{
|
||||
$this->navbar->container->content->search(
|
||||
$this->navbar->filter->gtk->get_text()
|
||||
$this->navbar->filter->getValue()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue