define GtkWindowType

This commit is contained in:
yggverse 2024-08-01 20:15:23 +03:00
parent 2fa95c2ed3
commit 15dca91f8d
3 changed files with 12 additions and 3 deletions

View file

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser;
use \GtkWindow;
use \GtkWindowType;
use \Yggverse\Yoda\Entity\Browser;
@ -32,7 +33,9 @@ class History
$this->browser = $browser;
// Init window
$this->gtk = new GtkWindow;
$this->gtk = new GtkWindow(
GtkWindowType::TOPLEVEL // GtkWindowType::POPUP
);
$this->gtk->set_size_request(
$this::WIDTH,