Browse Source

use getValue API method

PHP-GTK3
yggverse 5 months ago
parent
commit
e43697ec0c
  1. 8
      src/Entity/Browser/Container/Tab/Page/Content.php
  2. 2
      src/Entity/Browser/Container/Tab/Page/Content/Data.php
  3. 8
      src/Entity/Browser/Container/Tab/Page/Navbar/Base.php
  4. 4
      src/Entity/Browser/Container/Tab/Page/Navbar/Go.php
  5. 2
      src/Entity/Browser/History/Container/Content.php
  6. 2
      src/Entity/Browser/History/Container/Navbar/Search.php

8
src/Entity/Browser/Container/Tab/Page/Content.php

@ -83,7 +83,7 @@ class Content @@ -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 @@ -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 @@ -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()
)
)
);

2
src/Entity/Browser/Container/Tab/Page/Content/Data.php

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

8
src/Entity/Browser/Container/Tab/Page/Navbar/Base.php

@ -13,11 +13,7 @@ class Base extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Nav @@ -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 @@ -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(),
'/'
)
);

4
src/Entity/Browser/Container/Tab/Page/Navbar/Go.php

@ -19,9 +19,7 @@ class Go extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Navba @@ -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()
)
);
}

2
src/Entity/Browser/History/Container/Content.php

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

2
src/Entity/Browser/History/Container/Navbar/Search.php

@ -14,7 +14,7 @@ class Search extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na @@ -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…
Cancel
Save