mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add button tooltip support, remove default label
This commit is contained in:
parent
d7271a49bf
commit
5363acc2a9
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue