require _onConfigure event implementation for custom wordwrap

This commit is contained in:
yggverse 2024-07-28 14:52:47 +03:00
parent 52d25c6ffa
commit 88e77e6b80
4 changed files with 34 additions and 10 deletions

View file

@ -76,6 +76,19 @@ abstract class Markup
);
}
);
$this->gtk->connect(
'configure-event',
function(
GtkWindow $window,
GdkEvent $event
) {
return $this->_onConfigure(
$label,
$event
);
}
);
}
protected function _onActivateLink(
@ -94,6 +107,11 @@ abstract class Markup
return false;
}
abstract protected function _onConfigure(
GtkLabel $label,
GdkEvent $event
): bool;
abstract public function set(
string $value
): void;