Class

GtkFileDialog

unstable since: 4.10

Description [src]

final class Gtk.FileDialog : GObject.Object {
  /* No available fields */
}

A GtkFileDialog object collects the arguments that are needed to present a file chooser dialog to the user, such as a title for the dialog and whether it should be modal.

The dialog is shown with gtk_file_dialog_open(), gtk_file_dialog_save(), etc. These APIs follow the GIO async pattern, and the result can be obtained by calling the corresponding finish function, for example gtk_file_dialog_open_finish().

Available since: 4.10

Hierarchy

hierarchy this GtkFileDialog ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

gtk_file_dialog_new

Creates a new GtkFileDialog object.

unstable since: 4.10

Instance methods

gtk_file_dialog_get_current_filter

Gets the filter that will be selected by default in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_get_current_folder

Gets the folder that will be set as the initial folder in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_get_filters

Gets the filters that will be offered to the user in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_get_modal

Returns whether the file chooser dialog blocks interaction with the parent window while it is presented.

unstable since: 4.10

gtk_file_dialog_get_shortcut_folders

Gets the shortcut folders that will be available to the user in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_get_title

Returns the title that will be shown on the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_open

This function initiates a file selection operation by presenting a file chooser dialog to the user.

unstable since: 4.10

gtk_file_dialog_open_finish

Finishes the gtk_file_dialog_open() call and returns the resulting file.

unstable since: 4.10

gtk_file_dialog_open_multiple

This function initiates a multi-file selection operation by presenting a file chooser dialog to the user.

unstable since: 4.10

gtk_file_dialog_open_multiple_finish

Finishes the gtk_file_dialog_open() call and returns the resulting files in a GListModel.

unstable since: 4.10

gtk_file_dialog_save

This function initiates a file save operation by presenting a file chooser dialog to the user.

unstable since: 4.10

gtk_file_dialog_save_finish

Finishes the gtk_file_dialog_save() call and returns the resulting file.

unstable since: 4.10

gtk_file_dialog_select_folder

This function initiates a directory selection operation by presenting a file chooser dialog to the user.

unstable since: 4.10

gtk_file_dialog_select_folder_finish

Finishes the gtk_file_dialog_select_folder() call and returns the resulting file.

unstable since: 4.10

gtk_file_dialog_select_multiple_folders

This function initiates a multi-directory selection operation by presenting a file chooser dialog to the user.

unstable since: 4.10

gtk_file_dialog_select_multiple_folders_finish

Finishes the gtk_file_dialog_select_multiple_folders() call and returns the resulting files in a GListModel.

unstable since: 4.10

gtk_file_dialog_set_current_filter

Sets the filters that will be selected by default in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_set_current_folder

Sets the folder that will be set as the initial folder in the file chooser dialog, unless overridden by parameters of the async call.

unstable since: 4.10

gtk_file_dialog_set_filters

Sets the filters that will be offered to the user in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_set_modal

Sets whether the file chooser dialog blocks interaction with the parent window while it is presented.

unstable since: 4.10

gtk_file_dialog_set_shortcut_folders

Sets the shortcut folders that will be available to the user in the file chooser dialog.

unstable since: 4.10

gtk_file_dialog_set_title

Sets the title that will be shown on the file chooser dialog.

unstable since: 4.10

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gtk.FileDialog:current-filter

The current filter, that is, the filter that is initially active in the file chooser dialog.

unstable since: 4.10

Gtk.FileDialog:current-folder

The current folder, that is, the directory that is initially opened in the file chooser dialog, unless overridden by parameters of the async call.

unstable since: 4.10

Gtk.FileDialog:filters

The list of filters.

unstable since: 4.10

Gtk.FileDialog:modal

Whether the file chooser dialog is modal.

unstable since: 4.10

Gtk.FileDialog:shortcut-folders

The list of shortcut folders.

unstable since: 4.10

Gtk.FileDialog:title

A title that may be shown on the file chooser dialog.

unstable since: 4.10

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GtkFileDialogClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.