plug-ins: use list() variants in bindings.

Cf. previous commit.
This commit is contained in:
Jehan 2022-06-27 22:30:42 +02:00
parent 15ec254148
commit 69f6f5748a
2 changed files with 4 additions and 4 deletions

View File

@ -273,7 +273,7 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, dat
yield layer
else:
yield layer
for sublayer in enumerate_layers(layer.get_children()):
for sublayer in enumerate_layers(layer.list_children()):
yield sublayer
yield NESTED_STACK_END
@ -281,7 +281,7 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, dat
parent_groups = []
i = 0
layer_stack = image.get_layers()
layer_stack = image.list_layers()
# Number of top level layers for tracking progress
lay_cnt = len(layer_stack)

View File

@ -379,13 +379,13 @@ class SelectionToPath:
GObject.Value(Gimp.RunMode, Gimp.RunMode.NONINTERACTIVE),
GObject.Value(Gimp.Image, self.image),
GObject.Value(GObject.TYPE_INT, 0),
# XXX: I could use self.image.get_selected_layers() but for
# XXX: I could use self.image.list_selected_layers() but for
# this call, it doesn't matter anyway.
GObject.Value(Gimp.ObjectArray,
Gimp.ObjectArray.new(Gimp.Drawable, [], False)),
])
self.path = self.image.get_vectors()[0]
self.path = self.image.list_vectors()[0]
self.stroke_ids = self.path.get_strokes()
# A path may contain several strokes. If so lets throw away a stroke that