Draft: API: slice of possible solution for #7369
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:
-
PDB Browser to gimp-image-get-paths. The length arg is gone, and the returned type is now GimpObjectArray.
-
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))
-
To see changes in plugins, diff common/file-svg.c