diff --git a/src/Entity/Browser/Container/Page.php b/src/Entity/Browser/Container/Page.php index d52fdf69..10985d8b 100644 --- a/src/Entity/Browser/Container/Page.php +++ b/src/Entity/Browser/Container/Page.php @@ -49,7 +49,7 @@ class Page ); $this->gtk->set_focus_child( - $this->navbar->go->gtk // replace autofocus priority + $this->navbar->update->gtk // replace autofocus priority ); // Init content diff --git a/src/Entity/Browser/Container/Page/Navbar.php b/src/Entity/Browser/Container/Page/Navbar.php index b7976125..e0e1eedd 100644 --- a/src/Entity/Browser/Container/Page/Navbar.php +++ b/src/Entity/Browser/Container/Page/Navbar.php @@ -15,9 +15,9 @@ class Navbar // Requirements public Navbar\Base $base; - public Navbar\Go $go; public Navbar\History $history; public Navbar\Request $request; + public Navbar\Update $update; // Defaults public const MARGIN = 8; @@ -71,6 +71,15 @@ class Navbar $this->history->gtk ); + // Append update button + $this->update = new Navbar\Update( + $this + ); + + $this->gtk->add( + $this->update->gtk + ); + // Append request entry, fill empty space $this->request = new Navbar\Request( $this @@ -83,15 +92,6 @@ class Navbar 0 ); - // Append go button - $this->go = new Navbar\Go( - $this - ); - - $this->gtk->add( - $this->go->gtk - ); - // Render $this->gtk->show(); } @@ -99,7 +99,7 @@ class Navbar public function refresh() { $this->base->refresh(); - $this->go->refresh(); + $this->update->refresh(); $this->history->refresh(); } } \ No newline at end of file diff --git a/src/Entity/Browser/Container/Page/Navbar/Go.php b/src/Entity/Browser/Container/Page/Navbar/Update.php similarity index 95% rename from src/Entity/Browser/Container/Page/Navbar/Go.php rename to src/Entity/Browser/Container/Page/Navbar/Update.php index 23b22b6e..a777472e 100644 --- a/src/Entity/Browser/Container/Page/Navbar/Go.php +++ b/src/Entity/Browser/Container/Page/Navbar/Update.php @@ -6,7 +6,7 @@ namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar; use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button; -class Go extends Button +class Update extends Button { public const IMAGE = 'view-refresh-symbolic'; public const LABEL = 'Go';