implement _onButtonPressEvent method

This commit is contained in:
yggverse 2024-07-21 23:56:48 +03:00
parent ee2f8ba3b1
commit 6afc498186
3 changed files with 29 additions and 6 deletions

View file

@ -67,12 +67,14 @@ abstract class Markup
$this->gtk->connect(
'button-press-event',
function()
{
// Markup container has focus disabled (to hide cursor position),
// solution remove selection from request entry on click this area
// @TODO
function(
\GtkLabel $label,
\GdkEvent $event
) {
return $this->_onButtonPressEvent(
$label,
$event
);
}
);
}
@ -82,6 +84,11 @@ abstract class Markup
string $href
): bool;
abstract protected function _onButtonPressEvent(
\GtkLabel $label,
\GdkEvent $event
): bool;
abstract public function set(
string $value
): void;