rename update button, change location in the navbar

This commit is contained in:
yggverse 2024-07-24 14:29:42 +03:00
parent a76f3a87c6
commit b8ca2cdce4
3 changed files with 13 additions and 13 deletions

View file

@ -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

View file

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

View file

@ -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';