This is a convenience function that adds a preview widget to the chooser, which displays thumbnails for the selected
filenames using the thumbnail database.
The preview widget is also able to generate thumbnails for all image formats supported by Pixbuf.
Use this function whenever you display a FileChooser to ask the user to select an image file from the file system.
The preview widget also supports URIs other than file:-URIs to a certain degree, but this support is rather limited currently, so you may want to use set_local_only to ensure that the user can only select files from the local file system.
When chooser is configured to select multiple image files - using the
set_select_multiple method - the behaviour of the
preview widget is currently undefined, in that it is not defined for which of the selected files the preview will be displayed.
| chooser |
a FileChooser. |