python: Fix file arguments after 161b3c53
Closes #12788 (closed)
@Jehan: Hi! I wasn't able to set the default file argument to None
in Python - it complained it wasn't a valid format for that parameter type.
I set it to Gimp.temp_file ()
just to get it to run. Then I get the following errors when I run 'Export Histogram':
(python-fu-histogram-export:7412): LibGimpUI-CRITICAL **: gimp_procedure_dialog_get_file_chooser: assertion 'action != GIMP_FILE_CHOOSER_ACTION_ANY && action != GIMP_FILE_CHOOSER_ACTION_SAVE && action != GIMP_FILE_CHOOSER_ACTION_CREATE_FOLDER' failed
(python-fu-histogram-export:7412): LibGimpUI-WARNING **: gimp_procedure_dialog_get_widget: widget type void not supported for parameter 'file' of type GimpParamFile
Save Gradient as CSS works, but it creates its own file widget. There seems to be a problem with creating a file widgets of certain action types.
Edited by Bruno