Browse Source

set label on icon image not provided

PHP-GTK3
yggverse 4 months ago
parent
commit
d7271a49bf
  1. 13
      src/Abstract/Entity/Button.php
  2. 3
      src/Entity/Browser/Header/Tray/Tab.php

13
src/Abstract/Entity/Button.php

@ -9,8 +9,8 @@ abstract class Button @@ -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,13 +26,16 @@ abstract class Button @@ -26,13 +26,16 @@ abstract class Button
);
}
$this->gtk->set_sensitive(
$this::SENSITIVE
);
else
{
$this->gtk->set_label(
_($this::LABEL)
);
}
$this->gtk->set_sensitive(
$this::SENSITIVE
);
// Render
$this->gtk->show();

3
src/Entity/Browser/Header/Tray/Tab.php

@ -37,9 +37,12 @@ class Tab @@ -37,9 +37,12 @@ class Tab
);
}
else
{
$this->gtk->set_label(
_($this::LABEL)
);
}
$this->gtk->set_tooltip_text(
_($this::TOOLTIP)

Loading…
Cancel
Save