From a9dfdc1ccaca3c70cb1f5fdc6e9c4d824c4c337b Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 20 Jul 2024 11:34:54 +0300 Subject: [PATCH] add tooltip --- src/Entity/Browser/Menu/Tab/Close.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Entity/Browser/Menu/Tab/Close.php b/src/Entity/Browser/Menu/Tab/Close.php index c8427fa0..15b2a1f8 100644 --- a/src/Entity/Browser/Menu/Tab/Close.php +++ b/src/Entity/Browser/Menu/Tab/Close.php @@ -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();