mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
plug-ins: file-openraster also moved to new gimp_load_procedure_new().
Additionally getting rid of a call to gimp_image_set_file() since we clarified its docs as not being used for non-XCF files.
This commit is contained in:
parent
9e2a7e8759
commit
601437addd
1 changed files with 2 additions and 3 deletions
|
@ -350,7 +350,7 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, metadata,
|
|||
GObject.Value(Gimp.PDBStatusType, Gimp.PDBStatusType.SUCCESS)
|
||||
])
|
||||
|
||||
def load_ora(procedure, run_mode, file, args, data):
|
||||
def load_ora(procedure, run_mode, file, metadata, flags, config, data):
|
||||
tempdir = tempfile.mkdtemp('gimp-plugin-file-openraster')
|
||||
orafile = zipfile.ZipFile(file.peek_path())
|
||||
stack, w, h = get_image_attributes(orafile)
|
||||
|
@ -358,7 +358,6 @@ def load_ora(procedure, run_mode, file, args, data):
|
|||
Gimp.progress_init("Loading openraster image")
|
||||
|
||||
img = Gimp.Image.new(w, h, Gimp.ImageBaseType.RGB)
|
||||
img.set_file (file)
|
||||
|
||||
def get_layers(root):
|
||||
"""iterates over layers and nested stacks"""
|
||||
|
@ -448,7 +447,7 @@ def load_ora(procedure, run_mode, file, args, data):
|
|||
return Gimp.ValueArray.new_from_values([
|
||||
GObject.Value(Gimp.PDBStatusType, Gimp.PDBStatusType.SUCCESS),
|
||||
GObject.Value(Gimp.Image, img),
|
||||
])
|
||||
]), flags
|
||||
|
||||
|
||||
class FileOpenRaster (Gimp.PlugIn):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue