2.99 Plugins: ScriptFu: script-fu-set-cmap.scm fails, needs change for GBytes
Open an indexed image and choose Colors>Map>Set Colormap... and OK
Get in stderr console:
scriptfu-Message: 14:20:45.033: Error while executing script-fu-set-cmap:
Error: in script, expected type: vector for argument 2 to gimp-image-set-colormap
gimp-image-set-colormap now takes just a GBytes instead of a length and a GimpUint8Array.
Fix is probably just eliminate the second arg, the length of the GBytes array:
(gimp-image-set-colormap img
(* (car (gimp-palette-get-color-count palette)) 3)
(script-fu-make-cmap-array palette))
=>
(gimp-image-set-colormap img
(script-fu-make-cmap-array palette))
I am still lobbying for !988 (recently updated and awaiting review). This issue illustrates the inconsistency in the PDB API: for an array of bytes, you need not pass a length (because the array object knows its own length, on both sides of the binding.) while for other array objects you must pass the length. !988 would remove that inconsistency.