mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25: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
|
// Defaults
|
||||||
private string $_label = 'Close';
|
private string $_label = 'Close';
|
||||||
|
private string $_tooltip = 'Close active tab (double click on tab)';
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab
|
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab
|
||||||
|
|
@ -25,6 +26,10 @@ class Close
|
||||||
$this->_label
|
$this->_label
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->gtk->set_tooltip_text(
|
||||||
|
$this->_tooltip
|
||||||
|
);
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
$this->gtk->show();
|
$this->gtk->show();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue