Gtk.FileChooser.prototype.set_action
function set_action(action:Gtk.FileChooserAction):void { // Gjs wrapper for gtk_file_chooser_set_action() }
Sets the type of operation that the chooser is performing; the user interface is adapted to suit the selected action. For example, an option to create a new folder might be shown if the action is Gtk.FileChooserAction.save but not if the action is Gtk.FileChooserAction.open.
Since 2.4
- action
the action that the file selector is performing