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

5
src/Entity/Browser/Bookmark.php

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

5
src/Entity/Browser/History.php

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

Loading…
Cancel
Save