mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add tooltip
This commit is contained in:
parent
032704ee70
commit
ed0e033404
1 changed files with 7 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ class Navigation
|
|||
// Requirements
|
||||
public \Yggverse\Yoda\Entity\Browser\Menu $menu;
|
||||
|
||||
// Defaults
|
||||
private string $_tooltip = 'Navigation';
|
||||
|
||||
public function __construct(
|
||||
\Yggverse\Yoda\Entity\Browser\Header $header
|
||||
) {
|
||||
|
|
@ -25,6 +28,10 @@ class Navigation
|
|||
// Init navigation container
|
||||
$this->gtk = new \GtkMenuButton;
|
||||
|
||||
$this->gtk->set_tooltip_text(
|
||||
$this->_tooltip
|
||||
);
|
||||
|
||||
// Init menu
|
||||
$this->menu = new Menu(
|
||||
$this->header->browser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue