Gtk.FileChooser Members

The members of Gtk.FileChooser are listed below.

Public Properties

ActionFileChooserAction. Sets the type of operation that that the chooser is performing; the user interface is adapted to suit the selected action.
[read-only]
CurrentFolderstring. The current folder for the file chooser, when the chooser has selected a local filename.
[read-only]
CurrentFolderUristring. The file chooser's current folder, if set from a URI.
[write-only]
CurrentNamestring. Property to represent the current name in the file selector, as if entered by the user.
DoOverwriteConfirmationbool. Controls if Overwrite Confirmation is performed.
ExtraWidgetWidget. An application-supplied widget to provide extra options to the user.
[read-only]
Filenamestring. The current filename selected by the file chooser.
[read-only]
Filenamesstring[]. Documentation for this section has not yet been entered.
FilterFileFilter. The currently-applied file filter.
[read-only]
FiltersFileFilter[]. Documentation for this section has not yet been entered.
LocalOnlybool. Sets whether only local files can be selected in the file selector.
[read-only]
PreviewFilenamestring. Internal function; gets the filename that should be previewed in a custom preview.
[read-only]
PreviewUristring. The URI that should be previewed in a custom preview widget.
PreviewWidgetWidget. An application-supplied widget to use to display a custom preview of the currently selected file.
PreviewWidgetActivebool. Sets whether the preview widget set by FileChooser.SetPreviewWidget should be shown for the current filename.
SelectMultiplebool. Sets whether multiple files can be selected in the file selector.
[read-only]
ShortcutFoldersstring[]. Documentation for this section has not yet been entered.
[read-only]
ShortcutFolderUrisstring[]. Documentation for this section has not yet been entered.
ShowHiddenbool. Documentation for this section has not yet been entered.
[read-only]
Uristring. The URI for the currently selected file in the file selector.
[read-only]
Urisstring[]. Documentation for this section has not yet been entered.
UsePreviewLabelbool. Sets whether the file chooser should display a stock label with the name of the file that is being previewed; the default is true.

Public Methods

AddFilter(FileFilter)
Adds filter to the list of filters that the user can select between.
AddShortcutFolder(string) : bool
Adds a folder to be displayed with the shortcut folders in a file chooser.
AddShortcutFolderUri(string) : bool
Adds a folder URI to be displayed with the shortcut folders in a file chooser.
RemoveFilter(FileFilter)
Removes filter from the list of filters that the user can select between.
RemoveShortcutFolder(string) : bool
Removes a folder from a file chooser's list of shortcut folders.
RemoveShortcutFolderUri(string) : bool
Removes a folder URI from a file chooser's list of shortcut folders.
SelectAll()
Selects all the files in the current folder of a file chooser.
SelectFilename(string) : bool
Selects a filename.
SelectUri(string) : bool
Selects the file at uri. If the URI doesn't refer to a file in the current folder of the file chooser, then the current folder of the file chooser will be changed to the folder that's part of uri .
SetCurrentFolder(string) : bool
Sets the current folder for the file chooser from a local filename.
SetCurrentFolderUri(string) : bool
Sets the current folder for the chooser from an URI.
SetFilename(string) : bool
Sets filename as the current filename for the file chooser; If the file name isn't in the current folder of the file chooser, then the current folder of the file chooser will be changed to the folder containing filename.
SetUri(string) : bool
Sets the file referred to by uri as the current file for the the file chooser.
UnselectAll()
Unselects all the files in the current folder of a file chooser.
UnselectFilename(string)
Unselects a currently selected filename.
UnselectUri(string)
Unselects the file referred to by uri.

Public Events

ConfirmOverwriteIndicates an overwrite confirmation is needed.
CurrentFolderChanged This signal is emitted when the current folder in a file chooser changes.
FileActivated This signal is emitted when the user "activates" a file in the file chooser.
SelectionChangedThis event is raised every time the selected file changes.
UpdatePreview This signal is emitted when the preview in a file chooser should be regenerated. For example, this can happen when the currently selected file changes.