mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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
|
// 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue