LinkButton.connectActivateLink
gulong connectActivateLink(T)(T callback, 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)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.uri] 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.
Parameters
callback | 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 | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID