Skip to content

Draft: API: slice of possible solution for #7369

Lloyd Konneker requested to merge bootchk/gimp:fix7369arrayTypedPDB into master

This demonstrates a solution for #7369. One of many possible solutions. The solution that uses GimpObjectArray to pass arrays to the PDB and libgimp.

This is a demonstration only. It compiles and works but has flaws. It is a slice along Path, i.e. changes the patharray type in the PDB.

To see it what this does from a high level:

  1. PDB Browser to gimp-image-get-paths. The length arg is gone, and the returned type is now GimpObjectArray.

  2. Open an image and draw a path. In ScriptFu Console, enter: (gimp-image-get-paths 1) . The result is now (#(3)) instead of former (1 #(3))

  3. To see changes in plugins, diff common/file-svg.c

Merge request reports