Browse Source

define GtkWindowType

PHP-GTK3
yggverse 4 months ago
parent
commit
15dca91f8d
  1. 5
      src/Entity/Browser.php
  2. 5
      src/Entity/Browser/Bookmark.php
  3. 5
      src/Entity/Browser/History.php

5
src/Entity/Browser.php

@ -6,6 +6,7 @@ namespace Yggverse\Yoda\Entity; @@ -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 @@ -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

5
src/Entity/Browser/Bookmark.php

@ -5,6 +5,7 @@ declare(strict_types=1); @@ -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 @@ -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,

5
src/Entity/Browser/History.php

@ -5,6 +5,7 @@ declare(strict_types=1); @@ -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 @@ -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,

Loading…
Cancel
Save