Struct
WebKit2ScriptDialog
Description [src]
struct WebKitScriptDialog {
/* No available fields */
}
Carries details to be shown in user-facing dialogs.
Instance methods
webkit_script_dialog_close
Close dialog
. When handling a WebKitScriptDialog
asynchronously (webkit_script_dialog_ref()
was called in WebKitWebView::script-dialog
callback), this function needs to be called to notify
that we are done with the script dialog. The dialog will be closed on destruction if this function
hasn’t been called before.
Available since: 2.24
webkit_script_dialog_confirm_set_confirmed
This method is used for WEBKIT_SCRIPT_DIALOG_CONFIRM
and WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
dialogs when
WebKitWebView::script-dialog
signal is emitted to set whether the user
confirmed the dialog or not. The default implementation of WebKitWebView::script-dialog
signal sets TRUE
when the OK or Stay buttons are clicked and FALSE
otherwise.
It’s an error to use this method with a WebKitScriptDialog
that is not of type
WEBKIT_SCRIPT_DIALOG_CONFIRM
or WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
.
webkit_script_dialog_get_dialog_type
Get the dialog type of a WebKitScriptDialog
.
webkit_script_dialog_get_message
Get the message of a WebKitScriptDialog
.
webkit_script_dialog_prompt_get_default_text
Get the default text of a WebKitScriptDialog
of type WEBKIT_SCRIPT_DIALOG_PROMPT
.
It’s an error to use this method with a WebKitScriptDialog
that is not of type
WEBKIT_SCRIPT_DIALOG_PROMPT
.
webkit_script_dialog_prompt_set_text
This method is used for WEBKIT_SCRIPT_DIALOG_PROMPT
dialogs when
WebKitWebView::script-dialog
signal is emitted to set the text
entered by the user. The default implementation of WebKitWebView::script-dialog
signal sets the text of the entry form when OK button is clicked, otherwise NULL
is set.
It’s an error to use this method with a WebKitScriptDialog
that is not of type
WEBKIT_SCRIPT_DIALOG_PROMPT
.
webkit_script_dialog_ref
Atomically increments the reference count of dialog
by one. This
function is MT-safe and may be called from any thread.
Available since: 2.24
webkit_script_dialog_unref
Atomically decrements the reference count of dialog
by one. If the
reference count drops to 0, all memory allocated by the WebKitScriptdialog
is
released. This function is MT-safe and may be called from any thread.
Available since: 2.24