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

resulta [gio.async_result.AsyncResult]

Returns

the index of the button that was clicked, or -1 if

the dialog was cancelled and propertyGtk.AlertDialog:cancel-button is not set

Throws

[ErrorWrap]