forked from AuroraMiddleware/gtk
alertdialog: Rephrase docs for show() a bit
In particular, discuss what to do about cancellables. Related: !5326
This commit is contained in:
parent
671fad5f34
commit
c4c747d2ad
@ -755,11 +755,13 @@ gtk_alert_dialog_choose_finish (GtkAlertDialog *self,
|
|||||||
* @self: a `GtkAlertDialog`
|
* @self: a `GtkAlertDialog`
|
||||||
* @parent: (nullable): the parent `GtkWindow`
|
* @parent: (nullable): the parent `GtkWindow`
|
||||||
*
|
*
|
||||||
* This function shows the alert to the user.
|
* Show the alert to the user.
|
||||||
*
|
*
|
||||||
* If the alert has more than one button, you should use
|
* This function is a simple version of [method@Gtk.AlertDialog.choose]
|
||||||
* [method@Gtk.AlertDialog.choose] instead and provide
|
* intended for dialogs with a single button.
|
||||||
* a callback that can react to the button that was clicked.
|
* If you want to cancel the dialog or if the alert has more than one button,
|
||||||
|
* you should use that function instead and provide it with a #GCancellable or
|
||||||
|
* callback respectively.
|
||||||
*
|
*
|
||||||
* Since: 4.10
|
* Since: 4.10
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user