choose

open fun choose(parent: Window? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

This function shows the alert to the user.

It is ok to pass NULL for the callback if the alert does not have more than one button. A simpler API for this case is method@Gtk.AlertDialog.show.

Since

4.10

Parameters

parent

the parent GtkWindow

cancellable

a GCancellable to cancel the operation

callback

a callback to call when the operation is complete