connectRunColorChooser

fun connectRunColorChooser(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (request: ColorChooserRequest) -> Boolean): <Error class: unknown class>

This signal is emitted when the user interacts with a HTML element, requesting from WebKit to show a dialog to select a color. To let the application know the details of the color chooser, as well as to allow the client application to either cancel the request or perform an actual color selection, the signal will pass an instance of the #WebKitColorChooserRequest in the @request argument.

It is possible to handle this request asynchronously by increasing the reference count of the request.

The default signal handler will asynchronously run a regular #GtkColorChooser for the user to interact with.

Since

2.8

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: request a #WebKitColorChooserRequest. Returns true to stop other handlers from being invoked for the event. false to propagate the event further.