Gjsify LogoGjsify Logo

Index

Functions

  • buffer_tagger_update_tags(textview: Gtk.TextView): void
  • Converts flags into a localized text description of the set bits, one bit description per line. If no bit is set, then an empty string is returned.

    Parameters

    Returns string

  • Similar to e_trust_prompt_run_modal(), except it also manages all the necessary things around the source<!-- -->'s SSL/TLS trust properties when it also contains %E_SOURCE_EXTENSION_WEBDAV, thus the SSL/TLS trust on the WebDAV source is properly updated based on the user's choice. The call is finished with e_trust_prompt_run_for_source_finish(), which also returns the user's choice. The finish happens in the callback. This is necessary, because the source can be also saved.

    The function fails, if the source doesn't contain the %E_SOURCE_EXTENSION_AUTHENTICATION.

    Note: The dialog is not shown when the stored certificate trust in the WebDAV source matches the certificate_pem and the stored result is #E_TRUST_PROMPT_RESPONSE_REJECT.

    Parameters

    • parent: Gtk.Window

      A #GtkWindow to use as a parent for the trust prompt dialog

    • source: EDataServer.Source

      an #ESource, with %E_SOURCE_EXTENSION_AUTHENTICATION

    • certificate_pem: string

      a PEM-encoded certificate for which to show the trust prompt

    • certificate_errors: TlsCertificateFlags

      errors of the certificate_pem

    • error_text: string

      an optional error text to show in the dialog; can be %NULL

    • allow_source_save: boolean

      whether can also save any source changes

    • cancellable: Gio.Cancellable

      a #GCancellable, or %NULL

    • callback: AsyncReadyCallback

      a callback to call, when the prompt (an source save) is done

    Returns void

  • Finishes the operation started with e_trust_prompt_run_for_source(). The response will contain a code of the user's choice. The #E_TRUST_PROMPT_RESPONSE_UNKNOWN is used, when the user cancelled the trust prompt dialog and no changes are made with the source.

    If an error occurs, the function sets error and returns %FALSE.

    Parameters

    Returns boolean

  • Runs modal (doesn't return until the dialog is closed) a trust prompt dialog, it is a prompt whether a user wants to accept or reject the certificate_pem for the host due to the certificate_errors errors.

    The pair source_extension and source_display_name influences the trust prompt message. If both are set, then the message also contains which source failed to connect according to these two arguments.

    The dialog can contain a custom error text, passed in as error_text. The error might be a detailed error string returned by the server. If set, it is prefixed with "Detailed error:" string.

    Parameters

    • parent: Gtk.Window

      A #GtkWindow to use as a parent for the trust prompt dialog

    • source_extension: string

      an #ESource extension, to identify a kind of the source; or %NULL

    • source_display_name: string

      an #ESource display name, to identify what prompts; or %NULL

    • host: string

      a host name to which the certificate belongs

    • certificate_pem: string

      a PEM-encoded certificate for which to show the trust prompt

    • certificate_errors: TlsCertificateFlags

      errors of the certificate_pem

    • error_text: string

      an optional error text to show in the dialog; can be %NULL

    Returns TrustPromptResponse

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method