mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement new tab button
This commit is contained in:
parent
5559b236fe
commit
b9ca9616ff
2 changed files with 60 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Yggverse\Yoda\Entity\Browser;
|
||||
|
||||
use \Yggverse\Yoda\Entity\Browser\Header\Navigation;
|
||||
use \Yggverse\Yoda\Entity\Browser\Header\Tab;
|
||||
|
||||
class Header
|
||||
{
|
||||
|
|
@ -14,7 +15,8 @@ class Header
|
|||
public \Yggverse\Yoda\Entity\Browser $browser;
|
||||
|
||||
// Requirements
|
||||
public \Yggverse\Yoda\Entity\Browser\Header\Navigation $navigation;
|
||||
public Navigation $navigation;
|
||||
public Tab $tab;
|
||||
|
||||
// Defaults
|
||||
protected bool $_actions = true;
|
||||
|
|
@ -51,6 +53,15 @@ class Header
|
|||
$this->navigation->gtk
|
||||
);
|
||||
|
||||
// Init new tab button
|
||||
$this->tab = new Tab(
|
||||
$this
|
||||
);
|
||||
|
||||
$this->gtk->add(
|
||||
$this->tab->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue