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
// 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…
Cancel
Save