Gimp > Procedure > add_file_argument

It seems the widget is missing the label:

image

Also, it doesn’t support the selection of directories, which is a problem (in my 2.10 scripts I have 21 instances of PF_DIRNAME versus 5 of PF_FILE/PF_FILENAME).

As far as I can tell from the code it uses GTK_FILE_CHOOSER_ACTION_OPEN that precludes:

  • Using a directory
  • Creating an output file (which is already a problem in Gimp 2.x)

Gtk.FileChooserAction defines three more flags that would fulfill all needs, so can these be included (perhaps as an additional flag parameter?)

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.