Browse Source

add setSubtitle method

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

17
src/Entity/Browser/Header.php

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