GtkFileChooser::set_action

set_action(GtkFileChooserAction action);

Defines the action of the GtkFileChooser. The action changes its behavior allowing the user to select a file of a folder.

It can be Gtk::FILE_CHOOSER_ACTION_OPEN or Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER.