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

@ -6,6 +6,7 @@ namespace Yggverse\Yoda\Entity;
use \Gtk;
use \GtkWindow;
use \GtkWindowType;
use \Yggverse\Yoda\Entity\Browser\Header;
use \Yggverse\Yoda\Entity\Browser\Container;
@ -37,7 +38,9 @@ class Browser
$this->database = $database;
// Init window
$this->gtk = new GtkWindow;
$this->gtk = new GtkWindow(
GtkWindowType::TOPLEVEL
);
$this->gtk->set_interactive_debugging(
$this::DEBUG

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 Bookmark
$this->browser = $browser;
// Init window
$this->gtk = new GtkWindow;
$this->gtk = new GtkWindow(
GtkWindowType::TOPLEVEL // GtkWindowType::POPUP
);
$this->gtk->set_size_request(
$this::WIDTH,

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,