Class
GtkFileDialog
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 |
Instance methods
gtk_file_dialog_get_current_filter
Gets the filter that will be selected by default in the file chooser dialog.
Available 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.
Available since: 4.10
gtk_file_dialog_get_filters
Gets the filters that will be offered to the user in the file chooser dialog.
Available since: 4.10
gtk_file_dialog_get_modal
Returns whether the file chooser dialog blocks interaction with the parent window while it is presented.
Available 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.
Available since: 4.10
gtk_file_dialog_get_title
Returns the title that will be shown on the file chooser dialog.
Available since: 4.10
gtk_file_dialog_open
This function initiates a file selection operation by presenting a file chooser dialog to the user.
Available since: 4.10
gtk_file_dialog_open_finish
Finishes the gtk_file_dialog_open()
call and
returns the resulting file.
Available 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.
Available since: 4.10
gtk_file_dialog_open_multiple_finish
Finishes the gtk_file_dialog_open()
call and
returns the resulting files in a GListModel
.
Available since: 4.10
gtk_file_dialog_save
This function initiates a file save operation by presenting a file chooser dialog to the user.
Available since: 4.10
gtk_file_dialog_save_finish
Finishes the gtk_file_dialog_save()
call and
returns the resulting file.
Available since: 4.10
gtk_file_dialog_select_folder
This function initiates a directory selection operation by presenting a file chooser dialog to the user.
Available since: 4.10
gtk_file_dialog_select_folder_finish
Finishes the gtk_file_dialog_select_folder()
call and
returns the resulting file.
Available 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.
Available 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
.
Available since: 4.10
gtk_file_dialog_set_current_filter
Sets the filters that will be selected by default in the file chooser dialog.
Available 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.
Available since: 4.10
gtk_file_dialog_set_filters
Sets the filters that will be offered to the user in the file chooser dialog.
Available since: 4.10
gtk_file_dialog_set_modal
Sets whether the file chooser dialog blocks interaction with the parent window while it is presented.
Available 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.
Available since: 4.10
gtk_file_dialog_set_title
Sets the title that will be shown on the file chooser dialog.
Available since: 4.10
Properties
Gtk.FileDialog:current-filter
The current filter, that is, the filter that is initially active in the file chooser dialog.
Available 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.
Available since: 4.10
Signals
Signals inherited from GObject (1)
GObject.Object::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.