AlertDialog.choose

void choose(gtk.widget.Widget parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

This function shows self to the user.

The callback will be called when the alert is dismissed. It should call [adw.alert_dialog.AlertDialog.chooseFinish] to obtain the result.

If the window is an classWindow or classApplicationWindow, the dialog will be shown within it. Otherwise, it will be a separate window.

Parameters

parentthe parent widget
cancellablea [gio.cancellable.Cancellable] to cancel the operation
callbacka callback to call when the operation is complete