add button tooltip support, remove default label

This commit is contained in:
yggverse 2024-07-22 14:43:02 +03:00
parent d7271a49bf
commit 5363acc2a9

View file

@ -10,7 +10,8 @@ abstract class Button
public const SENSITIVE = false;
public const IMAGE = null;
public const LABEL = 'Button';
public const LABEL = '';
public const TOOLTIP = '';
public function __construct()
{
@ -33,6 +34,10 @@ abstract class Button
);
}
$this->gtk->set_sensitive(
_($this::TOOLTIP)
);
$this->gtk->set_sensitive(
$this::SENSITIVE
);