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

@ -222,7 +222,8 @@ class HistogramExport(Gimp.PlugIn):
# TODO: GFile props still don't have labels + only load existing files
# (here we likely want to create a new file).
procedure.add_file_argument ("file", _("Histogram File"),
_("Histogram export file"), GObject.ParamFlags.READWRITE)
_("Histogram export file"), Gimp.FileChooserAction.SAVE,
False, None, GObject.ParamFlags.READWRITE)
procedure.add_double_argument ("bucket-size", _("_Bucket Size"), _("Bucket Size"),
0.001, 1.0, 0.01, GObject.ParamFlags.READWRITE)
procedure.add_boolean_argument ("sample-average", _("Sample _Average"), _("Sample Average"),