diff --git a/src/Entity/Window/Tab/Address/Statusbar.php b/src/Entity/Window/Tab/Address/Statusbar.php index 0c39695..888e04f 100644 --- a/src/Entity/Window/Tab/Address/Statusbar.php +++ b/src/Entity/Window/Tab/Address/Statusbar.php @@ -12,6 +12,7 @@ class Statusbar // Defaults private int $_margin = 8; + private string $_text = ''; public function __construct( \Yggverse\Yoda\Entity\Window\Tab\Address $address @@ -48,4 +49,15 @@ class Statusbar $this->_margin ); } + + public function setText( + ?string $text = null + ): void + { + $this->gtk->set_text( + is_null($text) ? $this->_text : trim( + $text + ) + ); + } } \ No newline at end of file