plug-ins: fix the GimpSaveProcedure plug-ins in Python.

As usual, these got forgotten!

Also colorxhtml is actually deeply broken by commit 89c359ce47 which removed
gimp_drawable_get_pixel() (Niels thought it was not used, whereas it was simply
harder to spot with bindings!).
This will have to be fixed eventually.
This commit is contained in:
Jehan 2023-07-23 00:10:51 +02:00
parent fcc810d7d3
commit 69edf13e2c
2 changed files with 11 additions and 9 deletions

View file

@ -190,7 +190,7 @@ def thumbnail_ora(procedure, file, thumb_size, args, data):
# We would expect the n_drawables parameter to not be there with introspection but
# currently that isn't working, see issue #5312. Until that is resolved we keep
# this parameter here or else saving would fail.
def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, data):
def save_ora(procedure, run_mode, image, n_drawables, drawables, file, metadata, config, data):
def write_file_str(zfile, fname, data):
# work around a permission bug in the zipfile library:
# http://bugs.python.org/issue3394
@ -465,7 +465,7 @@ class FileOpenRaster (Gimp.PlugIn):
if name == 'file-openraster-save':
procedure = Gimp.SaveProcedure.new(self, name,
Gimp.PDBProcType.PLUGIN,
save_ora, None)
False, save_ora, None)
procedure.set_image_types("*");
procedure.set_documentation ('save an OpenRaster (.ora) file',
'save an OpenRaster (.ora) file',