From 444ce5d31a429816065be34eb890ce16b8192bf1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 31 Jul 2024 04:28:13 +0300 Subject: [PATCH] use namespace --- src/Entity/Browser/Menu/Tab/Clean.php | 5 +++-- src/Entity/Browser/Menu/Tab/Close.php | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Entity/Browser/Menu/Tab/Clean.php b/src/Entity/Browser/Menu/Tab/Clean.php index edaf93b0..8e90d3b7 100644 --- a/src/Entity/Browser/Menu/Tab/Clean.php +++ b/src/Entity/Browser/Menu/Tab/Clean.php @@ -6,6 +6,7 @@ namespace Yggverse\Yoda\Entity\Browser\Menu\Tab; use \GtkButtonsType; use \GtkDialogFlags; +use \GtkMenuItem; use \GtkMessageDialog; use \GtkMessageType; use \GtkResponseType; @@ -14,7 +15,7 @@ use \Yggverse\Yoda\Entity\Browser\Menu\Tab; class Clean { - public \GtkMenuItem $gtk; + public GtkMenuItem $gtk; // Dependencies public Tab $tab; @@ -32,7 +33,7 @@ class Clean $this->tab = $tab; // Init menu item - $this->gtk = \GtkMenuItem::new_with_label( + $this->gtk = GtkMenuItem::new_with_label( _($this::LABEL) ); diff --git a/src/Entity/Browser/Menu/Tab/Close.php b/src/Entity/Browser/Menu/Tab/Close.php index 7ed709cb..b71d4834 100644 --- a/src/Entity/Browser/Menu/Tab/Close.php +++ b/src/Entity/Browser/Menu/Tab/Close.php @@ -4,11 +4,13 @@ declare(strict_types=1); namespace Yggverse\Yoda\Entity\Browser\Menu\Tab; +use \GtkMenuItem; + use \Yggverse\Yoda\Entity\Browser\Menu\Tab; class Close { - public \GtkMenuItem $gtk; + public GtkMenuItem $gtk; // Dependencies public Tab $tab; @@ -24,7 +26,7 @@ class Close $this->tab = $tab; // Init menu item - $this->gtk = \GtkMenuItem::new_with_label( + $this->gtk = GtkMenuItem::new_with_label( _($this::LABEL) );