Browse Source

use namespace

PHP-GTK3
yggverse 4 months ago
parent
commit
444ce5d31a
  1. 5
      src/Entity/Browser/Menu/Tab/Clean.php
  2. 6
      src/Entity/Browser/Menu/Tab/Close.php

5
src/Entity/Browser/Menu/Tab/Clean.php

@ -6,6 +6,7 @@ namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
use \GtkButtonsType; use \GtkButtonsType;
use \GtkDialogFlags; use \GtkDialogFlags;
use \GtkMenuItem;
use \GtkMessageDialog; use \GtkMessageDialog;
use \GtkMessageType; use \GtkMessageType;
use \GtkResponseType; use \GtkResponseType;
@ -14,7 +15,7 @@ use \Yggverse\Yoda\Entity\Browser\Menu\Tab;
class Clean class Clean
{ {
public \GtkMenuItem $gtk; public GtkMenuItem $gtk;
// Dependencies // Dependencies
public Tab $tab; public Tab $tab;
@ -32,7 +33,7 @@ class Clean
$this->tab = $tab; $this->tab = $tab;
// Init menu item // Init menu item
$this->gtk = \GtkMenuItem::new_with_label( $this->gtk = GtkMenuItem::new_with_label(
_($this::LABEL) _($this::LABEL)
); );

6
src/Entity/Browser/Menu/Tab/Close.php

@ -4,11 +4,13 @@ declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Menu\Tab; namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
use \GtkMenuItem;
use \Yggverse\Yoda\Entity\Browser\Menu\Tab; use \Yggverse\Yoda\Entity\Browser\Menu\Tab;
class Close class Close
{ {
public \GtkMenuItem $gtk; public GtkMenuItem $gtk;
// Dependencies // Dependencies
public Tab $tab; public Tab $tab;
@ -24,7 +26,7 @@ class Close
$this->tab = $tab; $this->tab = $tab;
// Init menu item // Init menu item
$this->gtk = \GtkMenuItem::new_with_label( $this->gtk = GtkMenuItem::new_with_label(
_($this::LABEL) _($this::LABEL)
); );

Loading…
Cancel
Save