FileDialog.setInitialFile

void setInitialFile(gio.file.File file = null)

Sets the file that will be initially selected in the file chooser dialog.

This function is a shortcut for calling both [gtk.file_dialog.FileDialog.setInitialFolder] and [gtk.file_dialog.FileDialog.setInitialName] with the directory and name of file respectively.

Parameters

filea [gio.file.File]