Browse Source

use getValue API method

PHP-GTK3
yggverse 4 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
{ {
// Parse address // Parse address
$address = new \Yggverse\Net\Address( $address = new \Yggverse\Net\Address(
$this->page->navbar->request->gtk->get_text() $this->page->navbar->request->getValue()
); );
// Init new title // Init new title
@ -303,9 +303,7 @@ class Content
$address = new \Yggverse\Net\Address( $address = new \Yggverse\Net\Address(
sprintf( sprintf(
'gemini://%s', 'gemini://%s',
trim( $this->page->navbar->request->getValue()
$this->page->navbar->request->gtk->get_text()
)
) )
); );
@ -328,7 +326,7 @@ class Content
sprintf( sprintf(
'gemini://tlgs.one/search?%s', // @TODO custom provider 'gemini://tlgs.one/search?%s', // @TODO custom provider
urlencode( 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
{ {
$address->toAbsolute( $address->toAbsolute(
new Address( 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
): void ): void
{ {
$address = new \Yggverse\Net\Address( $address = new \Yggverse\Net\Address(
trim( $this->navbar->request->getValue()
strval(
$this->navbar->request->gtk->get_text()
)
)
); );
if ($address->getHost()) if ($address->getHost())
@ -45,7 +41,7 @@ class Base extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Tab\Page\Nav
{ {
$address = new \Yggverse\Net\Address( $address = new \Yggverse\Net\Address(
rtrim( 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
{ {
$this->gtk->set_sensitive( $this->gtk->set_sensitive(
!empty( !empty(
trim( $this->navbar->request->getValue()
$this->navbar->request->gtk->get_text()
)
) )
); );
} }

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

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

Loading…
Cancel
Save