Browse Source

update tooltips

PHP-GTK3
yggverse 4 months ago
parent
commit
838c93b6f8
  1. 5
      src/Entity/Browser/Header/Tab.php
  2. 2
      src/Entity/Browser/Menu/Tab/Add.php

5
src/Entity/Browser/Header/Tab.php

@ -15,6 +15,7 @@ class Tab
// Defaults // Defaults
protected string $_label = '+'; protected string $_label = '+';
private string $_tooltip = 'New tab';
public function __construct( public function __construct(
Header $header Header $header
@ -29,6 +30,10 @@ class Tab
$this->_label $this->_label
); );
$this->gtk->set_tooltip_text(
$this->_tooltip
);
// Render // Render
$this->gtk->show(); $this->gtk->show();

2
src/Entity/Browser/Menu/Tab/Add.php

@ -15,7 +15,7 @@ class Add
// Defaults // Defaults
private string $_label = 'Add'; private string $_label = 'Add';
private string $_tooltip = 'Append new tab'; private string $_tooltip = 'New tab';
public function __construct( public function __construct(
Tab $tab Tab $tab

Loading…
Cancel
Save