mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use const for default values, use namespace
This commit is contained in:
parent
8a622ec335
commit
c985cf20af
20 changed files with 157 additions and 130 deletions
|
|
@ -14,8 +14,8 @@ class Close
|
|||
public Tab $tab;
|
||||
|
||||
// Defaults
|
||||
private string $_label = 'Close';
|
||||
private string $_tooltip = 'Close active tab (double click on tab)';
|
||||
public const LABEL = 'Close';
|
||||
public const TOOLTIP = 'Close active tab (double click on tab)';
|
||||
|
||||
public function __construct(
|
||||
Tab $tab
|
||||
|
|
@ -25,11 +25,11 @@ class Close
|
|||
|
||||
// Init menu item
|
||||
$this->gtk = \GtkMenuItem::new_with_label(
|
||||
_($this->_label)
|
||||
_($this::LABEL)
|
||||
);
|
||||
|
||||
$this->gtk->set_tooltip_text(
|
||||
_($this->_tooltip)
|
||||
_($this::TOOLTIP)
|
||||
);
|
||||
|
||||
// Render
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue