app, libgimp, pdb, plug-ins: add ability to default to context for all resource args.

Also fixes the passing of the resource param definitions through PDB.
There was some weird assumption, with a comment, in commit 73733335c8
that this was unneeded, which meant that we were not able to properly
recreate the right param spec over the wire.
This commit is contained in:
Jehan 2024-09-06 13:38:43 +02:00
parent 6f8231eee6
commit 75a50ce87b
34 changed files with 452 additions and 148 deletions

View file

@ -204,7 +204,7 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
GObject.ParamFlags.READWRITE)
procedure.add_gradient_argument ("gradient", _("_Gradient to use"),
"", True,
None, # Default to context.
None, True, # Default to context.
GObject.ParamFlags.READWRITE)
procedure.add_file_argument ("file", _("_File"),
"", GObject.ParamFlags.READWRITE)