FileDialog
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 method@Gtk.FileDialog.open, method@Gtk.FileDialog.save, etc.
Since
4.10
Constructors
Properties
Label for the file chooser's accept button.
The default filter, that is, the filter that is initially active in the file chooser dialog.
The initial file, that is, the file that is initially selected in the file chooser dialog
The initial folder, that is, the directory that is initially opened in the file chooser dialog
The initial name, that is, the filename that is initially selected in the file chooser dialog.
Functions
Retrieves the text used by the dialog on its accept button.
Gets the filter that will be selected by default in the file chooser dialog.
Gets the filters that will be offered to the user in the file chooser dialog.
Gets the file that will be initially selected in the file chooser dialog.
Gets the folder that will be set as the initial folder in the file chooser dialog.
Gets the name for the file that should be initially set.
Finishes the method@Gtk.FileDialog.open call and returns the resulting file.
This function initiates a multi-file selection operation by presenting a file chooser dialog to the user.
Finishes the method@Gtk.FileDialog.open call and returns the resulting files in a GListModel
.
Finishes the method@Gtk.FileDialog.save call and returns the resulting file.
This function initiates a directory selection operation by presenting a file chooser dialog to the user.
Finishes the method@Gtk.FileDialog.select_folder call and returns the resulting file.
This function initiates a multi-directory selection operation by presenting a file chooser dialog to the user.
Finishes the method@Gtk.FileDialog.select_multiple_folders call and returns the resulting files in a GListModel
.
Sets the label shown on the file chooser's accept button.
Sets the filter that will be selected by default in the file chooser dialog.
Sets the filters that will be offered to the user in the file chooser dialog.
Sets the file that will be initially selected in the file chooser dialog.
Sets the folder that will be set as the initial folder in the file chooser dialog.
Sets the name for the file that should be initially set. For saving dialogs, this will usually be pre-entered into the name field.