the dialog was cancelled and gtk.alert_dialog.AlertDialog.cancelButton is not set
AlertDialog.chooseFinish
int chooseFinish(gio.async_result.AsyncResult result)Finishes the gtk.alert_dialog.AlertDialog.choose call and returns the index of the button that was clicked.
Parameters
result | a gio.async_result.AsyncResult |
Returns
the index of the button that was clicked, or -1 if