LinkButton.connectActivateLink

Connect to ActivateLink signal.

Emitted each time the gtk.link_button.LinkButton is clicked.

The default handler will call gtk.file_launcher.FileLauncher.launch with the URI stored inside the gtk.link_button.LinkButton.utf8 property.

To override the default behavior, you can connect to the ::activate-link signal and stop the propagation of the signal by returning true from your handler.

class LinkButton
ulong
connectActivateLink
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] : gtk.link_button.LinkButton)
)
)
&&
Parameters!T.length < 2
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gtk.link_button.LinkButton linkButton)

linkButton the instance the signal is connected to (optional)

Returns true if the signal has been handled

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID