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

@ -58,7 +58,7 @@ class PaletteOffset (Gimp.PlugIn):
GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), True,
None, # Default to context.
None, True, # Default to context.
GObject.ParamFlags.READWRITE)
procedure.add_int_argument ("amount", _("O_ffset"), _("Offset"),
1, GLib.MAXINT, 1, GObject.ParamFlags.READWRITE)