About my projects, examples and tutorials
Gnome::Gtk4::T-filechooser

Gnome::Gtk4::T-filechooser

Class initialization§

new§

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )
Code

Enumerations§

GtkFileChooserAction§

Describes whether a Gnome::Gtk4::R-FileChooser is being used to open existing files or to save to a possibly new file.

  • GTK_FILE_CHOOSER_ACTION_OPEN; Indicates open mode. The file chooser will only let the user pick an existing file.
  • GTK_FILE_CHOOSER_ACTION_SAVE; Indicates save mode. The file chooser will let the user pick an existing file, or type in a new filename.
  • GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; Indicates an Open mode for selecting folders. The file chooser will let the user pick an existing folder.

GtkFileChooserError§

These identify the various errors that can occur while calling Gnome::Gtk4::R-FileChooser functions.

  • GTK_FILE_CHOOSER_ERROR_NONEXISTENT; Indicates that a file does not exist.
  • GTK_FILE_CHOOSER_ERROR_BAD_FILENAME; Indicates a malformed filename.
  • GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS; Indicates a duplicate path (e.g. when adding a bookmark).
  • GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME; Indicates an incomplete hostname (e.g. "http://foo" without a slash after that).

Standalone Functions§

file-chooser-error-quark§

Registers an error quark for Gnome::Gtk4::R-FileChooser errors.

method file-chooser-error-quark (--> UInt )
Code

Return value; The error quark used for Gnome::Gtk4::R-FileChooser errors..