util_confirm_dialog


Description:


public void util_confirm_dialog (Window? parent, string heading, string body, string action, ResponseAppearance appearance, ConfirmDialogCallback on_confirmation)

Ask the user for confirmation.

The heading is the question, not the application's name and version: what an alert is asking has to be readable from its title alone, and "GPaste 51.0" asks nothing.

Parameters:

parent

the parent Window

heading

the question being asked

body

what confirming it does

action

the label for the confirm button

appearance

how the confirm button should look -- destructive only when something is actually lost

on_confirmation

handed whether the user confirmed -- called exactly once, a dialog whose window is destroyed under it and a call that is refused both answering false


Namespace: GPasteGtk
Package: gpaste-gtk4