AlertDialog.chooseFinish

Finishes the gtk.alert_dialog.AlertDialog.choose call and returns the index of the button that was clicked.

class AlertDialog
int
chooseFinish

Parameters

result gio.async_result.AsyncResult

Return Value

Type: int

the index of the button that was clicked, or -1 if the dialog was cancelled and propertyGtk.AlertDialog:cancel-button is not set