Method

GtkFileChooserget_filenames

since: 2.4

Declaration [src]

GSList*
gtk_file_chooser_get_filenames (
  GtkFileChooser* chooser
)

Description [src]

Lists all the selected files and subfolders in the current folder of chooser. The returned names are full absolute paths. If files in the current folder cannot be represented as local filenames they will be ignored. (See gtk_file_chooser_get_uris()).

Available since: 2.4

Return value

Type: A list of filename

A GSList containing the filenames of all selected files and subfolders in the current folder. Free the returned list with g_slist_free(), and the filenames with g_free().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
Each element is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.