mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add tooltip
This commit is contained in:
parent
b9ca9616ff
commit
a9dfdc1cca
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue