add tooltip

This commit is contained in:
yggverse 2024-07-20 11:34:54 +03:00
parent b9ca9616ff
commit a9dfdc1cca

View file

@ -13,6 +13,7 @@ class Close
// Defaults
private string $_label = 'Close';
private string $_tooltip = 'Close active tab (double click on tab)';
public function __construct(
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab
@ -25,6 +26,10 @@ class Close
$this->_label
);
$this->gtk->set_tooltip_text(
$this->_tooltip
);
// Render
$this->gtk->show();