add subtitle default property

This commit is contained in:
yggverse 2024-07-05 23:51:20 +03:00
parent ec391a8dd9
commit 815d86b2be

View File

@ -10,6 +10,7 @@ abstract class HeaderBar
protected bool $_actions = true;
protected string $_title = 'Yoda';
protected string $_subtitle = '';
public function __construct()
{
@ -22,6 +23,10 @@ abstract class HeaderBar
$this->gtk->set_title(
$this->_title
);
$this->gtk->set_subtitle(
$this->_subtitle
);
}
public function setTitle(