use getValue API method

This commit is contained in:
yggverse 2024-07-08 03:11:21 +03:00
parent 42cd6ba857
commit e43697ec0c
6 changed files with 9 additions and 17 deletions

View file

@ -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()
)
)
);

View file

@ -244,7 +244,7 @@ class Data
{
$address->toAbsolute(
new Address(
$this->content->page->navbar->request->gtk->get_text()
$this->content->page->navbar->request->getValue()
)
);
}

View file

@ -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(),
'/'
)
);

View file

@ -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()
)
);
}

View file

@ -103,7 +103,7 @@ class Content
public function refresh(): void
{
$this->search(
$this->container->navbar->filter->gtk->get_text()
$this->container->navbar->filter->getValue()
);
}
}

View file

@ -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()
);
}
}