add tooltip

This commit is contained in:
yggverse 2024-07-20 11:42:12 +03:00
parent 032704ee70
commit ed0e033404

View file

@ -16,6 +16,9 @@ class Navigation
// Requirements // Requirements
public \Yggverse\Yoda\Entity\Browser\Menu $menu; public \Yggverse\Yoda\Entity\Browser\Menu $menu;
// Defaults
private string $_tooltip = 'Navigation';
public function __construct( public function __construct(
\Yggverse\Yoda\Entity\Browser\Header $header \Yggverse\Yoda\Entity\Browser\Header $header
) { ) {
@ -25,6 +28,10 @@ class Navigation
// Init navigation container // Init navigation container
$this->gtk = new \GtkMenuButton; $this->gtk = new \GtkMenuButton;
$this->gtk->set_tooltip_text(
$this->_tooltip
);
// Init menu // Init menu
$this->menu = new Menu( $this->menu = new Menu(
$this->header->browser $this->header->browser