From 838c93b6f86824b982718b9dc450f6321b66f164 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 20 Jul 2024 11:42:26 +0300 Subject: [PATCH] update tooltips --- src/Entity/Browser/Header/Tab.php | 5 +++++ src/Entity/Browser/Menu/Tab/Add.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Entity/Browser/Header/Tab.php b/src/Entity/Browser/Header/Tab.php index b74d347c..1eef9260 100644 --- a/src/Entity/Browser/Header/Tab.php +++ b/src/Entity/Browser/Header/Tab.php @@ -15,6 +15,7 @@ class Tab // Defaults protected string $_label = '+'; + private string $_tooltip = 'New tab'; public function __construct( Header $header @@ -29,6 +30,10 @@ class Tab $this->_label ); + $this->gtk->set_tooltip_text( + $this->_tooltip + ); + // Render $this->gtk->show(); diff --git a/src/Entity/Browser/Menu/Tab/Add.php b/src/Entity/Browser/Menu/Tab/Add.php index 7b6499ca..2e46d706 100644 --- a/src/Entity/Browser/Menu/Tab/Add.php +++ b/src/Entity/Browser/Menu/Tab/Add.php @@ -15,7 +15,7 @@ class Add // Defaults private string $_label = 'Add'; - private string $_tooltip = 'Append new tab'; + private string $_tooltip = 'New tab'; public function __construct( Tab $tab