Method

GtkFileChooserget_preview_filename

since: 2.4

Declaration [src]

char*
gtk_file_chooser_get_preview_filename (
  GtkFileChooser* chooser
)

Description [src]

Gets the filename that should be previewed in a custom preview widget. See gtk_file_chooser_set_preview_widget().

Available since: 2.4

Return value

Type: char*

The filename to preview, or NULL if no file is selected, or if the selected file cannot be represented as a local filename. Free with g_free().

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