mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove search button as implemented by key up event
This commit is contained in:
parent
b8ca2cdce4
commit
f6fcacc79b
2 changed files with 0 additions and 31 deletions
|
|
@ -84,15 +84,6 @@ class Navbar
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init search button
|
|
||||||
$this->search = new Navbar\Search(
|
|
||||||
$this
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->gtk->add(
|
|
||||||
$this->search->gtk
|
|
||||||
);
|
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
$this->gtk->show();
|
$this->gtk->show();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
|
||||||
|
|
||||||
class Search extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button
|
|
||||||
{
|
|
||||||
public const SENSITIVE = true;
|
|
||||||
public const IMAGE = 'edit-find-symbolic';
|
|
||||||
public const LABEL = 'Search';
|
|
||||||
public const TOOLTIP = 'Search';
|
|
||||||
|
|
||||||
protected function _onCLick(
|
|
||||||
\GtkButton $entity
|
|
||||||
): void
|
|
||||||
{
|
|
||||||
$this->navbar->container->content->search(
|
|
||||||
$this->navbar->filter->getValue()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue