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:
@ -233,7 +233,8 @@ class ColorXhtml(Gimp.PlugIn):
|
||||
False, GObject.ParamFlags.READWRITE)
|
||||
#GUI only, used to create a widget to open a file if source-file is enabled
|
||||
procedure.add_file_aux_argument ("aux-file", _("Choose File"),
|
||||
"", GObject.ParamFlags.READWRITE)
|
||||
"", Gimp.FileChooserAction.SAVE,
|
||||
False, None, GObject.ParamFlags.READWRITE)
|
||||
|
||||
return procedure
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"),
|
||||
|
Reference in New Issue
Block a user