`GtkFileChooser` is an interface that can be implemented by file selection widgets.
Use [class@Gtk.FileDialog] instead
In GTK, the main objects that implement this interface are [class@Gtk.FileChooserWidget] and [class@Gtk.FileChooserDialog].
You do not need to write an object that implements the `GtkFileChooser` interface unless you are trying to adapt an existing file selector to expose a standard programming interface.
`GtkFileChooser` allows for shortcuts to various places in the filesystem. In the default implementation these are displayed in the left pane. It may be a bit confusing at first that these shortcuts come from various sources and in various flavours, so lets explain the terminology here:
When the user is finished selecting files in a `GtkFileChooser`, your program can get the selected filenames as `GFile`s.
You can add extra widgets to a file chooser to provide options that are not present in the default design, by using [ method@Gtk.FileChooser.add_choice]. Each choice has an identifier and a user visible label; additionally, each choice can have multiple options. If a choice has no option, it will be rendered as a check button with the given label; if a choice has options, it will be rendered as a combo box.
filter to the list of filters that the user can
select between.
filter from the list of filters that the user can
select between.
file.
uri.
file as the current filename for the file chooser.
filename as the current filename for the file
chooser, by changing to the file’s parent folder and actually selecting the file in list; all other files will be unselected.
uri as the current file for
the file chooser, by changing to the URI’s parent folder and actually selecting the URI in the list.
file.
uri.