FileSelection.setFilename

Warning gtk_file_selection_set_filename is deprecated and should not be used in newly-written code. Sets a default path for the file requestor. If filename includes a directory path, then the requestor will open with that path as its current working directory. This has the consequence that in order to open the requestor with a working directory and an empty filename, filename must have a trailing directory separator. The encoding of filename is preferred GLib file name encoding, which may not be UTF-8. See g_filename_from_utf8().

class FileSelection
void
setFilename
(
string filename
)

Parameters

filename string

a string to set as the default file name.

Meta