choose


Description:

public async int choose (Window? parent, Cancellable? cancellable) throws Error

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].

Parameters:

this

an alert dialog

parent

the parent window

cancellable

a cancellable to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback