GtkFileChooser
File chooser interface used by GtkFileChooserWidget and gtkfilechooser.
Object Hierarchy
Implemented by
Description
This is an interface and cannot be instantiated directly.
GtkFileChooser is an interface that can be implemented by file selection widgets. In GTK+, the main objects that implement this interface are GtkFileChooserWidget, gtkfilechooser, and GtkFileChooserButton. 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.
Methods
add_filter() Adds a filter to the GtkFileChooser add_shortcut_folder() Adds a folder to be displayed with the shortcut folders. add_shortcut_folder_uri() Adds a folder URI to be displayed with the shortcut folders. get_action() Returns the action of the chooser. get_current_folder() Returns the current folder. get_current_folder_uri() Gets the current folder as an URI. get_extra_widget() Returns the extra widget defined for the chooser. get_filename() Returns the current file location selected. get_filenames() Lists all the selected files and subfolders. get_filter() Returns the GtkFileFilter object. get_local_only() Whether only local files can be selected. get_preview_filename() Filename that should be previewed in a custom preview widget. get_preview_uri() URI that should be previewed in a custom preview widget. get_preview_widget() Gets the current preview widget. get_preview_widget_active() Whether the preview widget should be shown for the current filename. get_select_multiple() Whether multiple files can be selected. get_show_hidden() Whether hidden files and folders are displayed. get_uri() URI for the currently selected file. get_uris() Lists all the selected files and subfolders. get_use_preview_label() Gets whether a stock label should be drawn with the name of the previewed file. list_filters() Lists the current set of user-selectable filters. list_shortcut_folder_uris() Queries the list of shortcut folders. list_shortcut_folders() Queries the list of shortcut folders. remove_filter() Removes filter from the list of filters the user can select. remove_shortcut_folder() remove_shortcut_folder_uri() select_all() Selects all the files in the current folder. select_filename() Selects a filename. select_uri() Selects an URI. set_action() Defines the action. set_current_folder() Defines the current path shown. set_current_folder_uri() Defines the current path shown. set_current_name() Sets the current name in the file selector. set_extra_widget() Define an extra widget that is packed at the bottom of the widget. set_filename() Defines the current file location. set_filter() Sets the current filter set_local_only() Sets whether only local files can be selected. set_preview_widget() Sets an application-supplied widget to display a custom preview of the file. set_preview_widget_active() Sets whether the preview widget should be shown. set_select_multiple() Sets whether multiple files can be selected. set_show_hidden() set_uri() set_use_preview_label() unselect_all() unselect_filename() unselect_uri()