python: Fix file arguments after 161b3c53

We accidentally missed updating the
Python file parameters after 161b3c53.
This patch updates the API as well.
This commit is contained in:
Alx Sa 2025-01-22 18:08:20 +00:00 committed by Jehan
parent e752687321
commit 8db404516e
3 changed files with 6 additions and 3 deletions

View file

@ -207,7 +207,8 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
None, True, # Default to context.
GObject.ParamFlags.READWRITE)
procedure.add_file_argument ("file", _("_File"),
"", GObject.ParamFlags.READWRITE)
"", Gimp.FileChooserAction.SAVE,
False, None, GObject.ParamFlags.READWRITE)
return procedure
Gimp.main(GradientsSaveAsCSS.__gtype__, sys.argv)