Browse Source

add setSubtitle method

PHP-GTK3
yggverse 2 months ago
parent
commit
a516aa958f
  1. 17
      src/Entity/Browser/Header.php

17
src/Entity/Browser/Header.php

@ -53,17 +53,28 @@ class Header @@ -53,17 +53,28 @@ class Header
}
public function setTitle(
?string $title = null
?string $value = null
): void
{
$this->gtk->set_title(
is_null($title) ? $this->_title : sprintf(
is_null($value) ? $this->_title : sprintf(
'%s - %s',
trim(
$title
$value
),
$this->_title
)
);
}
public function setSubtitle(
?string $value = null
): void
{
$this->gtk->set_subtitle(
is_null($value) ? $this->_subtitle : trim(
$value
)
);
}
}
Loading…
Cancel
Save