mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
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:
parent
fcc810d7d3
commit
69edf13e2c
2 changed files with 11 additions and 9 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue