From 15dca91f8d65fa61ee3f41a53eb823e8d19fc5f2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 1 Aug 2024 20:15:23 +0300 Subject: [PATCH] define GtkWindowType --- src/Entity/Browser.php | 5 ++++- src/Entity/Browser/Bookmark.php | 5 ++++- src/Entity/Browser/History.php | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Entity/Browser.php b/src/Entity/Browser.php index bdde2039..22347571 100644 --- a/src/Entity/Browser.php +++ b/src/Entity/Browser.php @@ -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 diff --git a/src/Entity/Browser/Bookmark.php b/src/Entity/Browser/Bookmark.php index 47f352ef..babe592d 100644 --- a/src/Entity/Browser/Bookmark.php +++ b/src/Entity/Browser/Bookmark.php @@ -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, diff --git a/src/Entity/Browser/History.php b/src/Entity/Browser/History.php index c1ba2e46..023a815f 100644 --- a/src/Entity/Browser/History.php +++ b/src/Entity/Browser/History.php @@ -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,