Browse Source

add tooltip

PHP-GTK3
yggverse 4 months ago
parent
commit
ed0e033404
  1. 7
      src/Entity/Browser/Header/Navigation.php

7
src/Entity/Browser/Header/Navigation.php

@ -16,6 +16,9 @@ class Navigation @@ -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 @@ -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…
Cancel
Save