Browse Source

add tooltip

PHP-GTK3
yggverse 4 months ago
parent
commit
a9dfdc1cca
  1. 5
      src/Entity/Browser/Menu/Tab/Close.php

5
src/Entity/Browser/Menu/Tab/Close.php

@ -13,6 +13,7 @@ class Close @@ -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 @@ -25,6 +26,10 @@ class Close
$this->_label
);
$this->gtk->set_tooltip_text(
$this->_tooltip
);
// Render
$this->gtk->show();

Loading…
Cancel
Save