mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
set label on icon image not provided
This commit is contained in:
parent
527738a1c7
commit
d7271a49bf
2 changed files with 14 additions and 8 deletions
|
|
@ -9,8 +9,8 @@ abstract class Button
|
|||
public \GtkButton $gtk;
|
||||
|
||||
public const SENSITIVE = false;
|
||||
public const LABEL = 'Button';
|
||||
public const IMAGE = null;
|
||||
public const LABEL = 'Button';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
|
@ -26,14 +26,17 @@ abstract class Button
|
|||
);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->gtk->set_label(
|
||||
_($this::LABEL)
|
||||
);
|
||||
}
|
||||
|
||||
$this->gtk->set_sensitive(
|
||||
$this::SENSITIVE
|
||||
);
|
||||
|
||||
$this->gtk->set_label(
|
||||
_($this::LABEL)
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
|
||||
|
|
|
|||
|
|
@ -37,9 +37,12 @@ class Tab
|
|||
);
|
||||
}
|
||||
|
||||
$this->gtk->set_label(
|
||||
_($this::LABEL)
|
||||
);
|
||||
else
|
||||
{
|
||||
$this->gtk->set_label(
|
||||
_($this::LABEL)
|
||||
);
|
||||
}
|
||||
|
||||
$this->gtk->set_tooltip_text(
|
||||
_($this::TOOLTIP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue