[ CCode ( cname = "gimp_file_chooser_set_action" ) ]
public void set_action (FileChooserAction action)
Changes how this is set to select a file.
It may completely change the internal widget structure so you should not depend on a specific widget composition.
Warning: with GTK deprecations, we may have soon to change the internal implementation. So this is all the more reason for you not to rely on specific child widgets being present (e.g.: we use currently [class@Gtk.FileChooserButton] internally but it was removed in GTK4 so we will eventually replace it by custom code). We will also likely move to native file dialogs at some point.
[enum@Gimp.FileChooserAction.ANY] is not a valid value for action.
| this | |
| action |
Action to set. |