mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
init tab menu elements
This commit is contained in:
parent
c5aee8f861
commit
1459667dc7
4 changed files with 152 additions and 2 deletions
37
src/Entity/Browser/Menu/Tab/Close.php
Normal file
37
src/Entity/Browser/Menu/Tab/Close.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
|
||||
|
||||
class Close
|
||||
{
|
||||
public \GtkMenuItem $gtk;
|
||||
|
||||
// Dependencies
|
||||
public \Yggverse\Yoda\Entity\Browser\Menu\Tab $tab;
|
||||
|
||||
// Defaults
|
||||
private string $_label = 'Close';
|
||||
|
||||
public function __construct(
|
||||
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab
|
||||
) {
|
||||
// Init dependencies
|
||||
$this->tab = $tab;
|
||||
|
||||
// Init menu item
|
||||
$this->gtk = \GtkMenuItem::new_with_label(
|
||||
$this->_label
|
||||
);
|
||||
|
||||
// Int events
|
||||
$this->gtk->connect(
|
||||
'activate',
|
||||
function()
|
||||
{
|
||||
// @TODO
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue