Browse Source

remove search button as implemented by key up event

PHP-GTK3
yggverse 4 months ago
parent
commit
f6fcacc79b
  1. 9
      src/Entity/Browser/History/Container/Navbar.php
  2. 22
      src/Entity/Browser/History/Container/Navbar/Search.php

9
src/Entity/Browser/History/Container/Navbar.php

@ -84,15 +84,6 @@ class Navbar @@ -84,15 +84,6 @@ class Navbar
0
);
// Init search button
$this->search = new Navbar\Search(
$this
);
$this->gtk->add(
$this->search->gtk
);
// Render
$this->gtk->show();
}

22
src/Entity/Browser/History/Container/Navbar/Search.php

@ -1,22 +0,0 @@ @@ -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…
Cancel
Save