Method

GtkAlertDialogchoose_finish

Declaration [src]

int
gtk_alert_dialog_choose_finish (
  GtkAlertDialog* self,
  GAsyncResult* result,
  GError** error
)

Description [src]

Finishes the gtk_alert_dialog_choose() call and returns the index of the button that was clicked.

Available since:4.10

Parameters

result GAsyncResult
 

A GAsyncResult

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: int
 

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