Forum und email

GtkFileChooser

File chooser interface used by GtkFileChooserWidget and gtkfilechooser.

对象层次

执行

描述

这是接口,不可以直接访问。

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.

方法

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