Gcr.Prompt.prototype.get_warning

function get_warning(): String {
    // Gjs wrapper for gcr_prompt_get_warning()
}
  

Get a prompt warning displayed on the prompt.

This is a warning like "The password is incorrect." usually displayed to the user about a previous 'unsuccessful' prompt.

If this string is null then no warning is displayed.

Returns

a newly allocated string containing the prompt warning, or null if no warning