Browse Source

add button tooltip support, remove default label

PHP-GTK3
yggverse 2 months ago
parent
commit
5363acc2a9
  1. 7
      src/Abstract/Entity/Button.php

7
src/Abstract/Entity/Button.php

@ -10,7 +10,8 @@ abstract class Button @@ -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 @@ -33,6 +34,10 @@ abstract class Button
);
}
$this->gtk->set_sensitive(
_($this::TOOLTIP)
);
$this->gtk->set_sensitive(
$this::SENSITIVE
);

Loading…
Cancel
Save