2.99 Python plugin calling Gimp.pencil() throws TypeError: Gimp.pencil() takes exactly 2 arguments (3 given), but docs say 3 args is correct
GIMP version: 2.99 pulled a few days ago
Operating System: Ubuntu 19.10
Package: self built test_gimp_pencil.py
Description of the bug
result = Gimp.pencil(drawable, 4, [100.0, 100.0, 400.0, 400.0])
#fails: TypeError: Gimp.pencil() takes exactly 2 arguments (3 given)
# but /usr/local/share/gir-1.0/Gimp-3.0.gir
# and the code in libgimpbase/gimppainttools_pdb.c says 3 args
Reproduction
Always
Reproduction steps:
- Execute the attached Python plugin (install it, chmod +x, run Gimp, create new image, choose Filters>Test>Test gimp_pencil.
…
Expected result: pencil draw a line
Actual result: TypeError thrown
Additional information
Traceback (most recent call last): File "/work/.home/.config/GIMP/2.99/plug-ins/test_gimp_pencil/test_gimp_pencil.py", line 21, in foo result = Gimp.pencil(drawable, 4, [100.0, 100.0, 400.0, 400.0]) TypeError: Gimp.pencil() takes exactly 2 arguments (3 given)
I'm porting GimpFu. There, I am also trying to get PyGObject to pass a Python list of floats as a GimpFloatArray to Gimp.get_pdb().run_procedure('gimp-pencil', args), also with much difficulty, but only possibly related.