mirror of https://github.com/GNOME/gimp.git
plug-ins: use list() variants in bindings.
Cf. previous commit.
This commit is contained in:
parent
15ec254148
commit
69f6f5748a
|
@ -273,7 +273,7 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, dat
|
||||||
yield layer
|
yield layer
|
||||||
else:
|
else:
|
||||||
yield layer
|
yield layer
|
||||||
for sublayer in enumerate_layers(layer.get_children()):
|
for sublayer in enumerate_layers(layer.list_children()):
|
||||||
yield sublayer
|
yield sublayer
|
||||||
yield NESTED_STACK_END
|
yield NESTED_STACK_END
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, dat
|
||||||
parent_groups = []
|
parent_groups = []
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
layer_stack = image.get_layers()
|
layer_stack = image.list_layers()
|
||||||
# Number of top level layers for tracking progress
|
# Number of top level layers for tracking progress
|
||||||
lay_cnt = len(layer_stack)
|
lay_cnt = len(layer_stack)
|
||||||
|
|
||||||
|
|
|
@ -379,13 +379,13 @@ class SelectionToPath:
|
||||||
GObject.Value(Gimp.RunMode, Gimp.RunMode.NONINTERACTIVE),
|
GObject.Value(Gimp.RunMode, Gimp.RunMode.NONINTERACTIVE),
|
||||||
GObject.Value(Gimp.Image, self.image),
|
GObject.Value(Gimp.Image, self.image),
|
||||||
GObject.Value(GObject.TYPE_INT, 0),
|
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.
|
# this call, it doesn't matter anyway.
|
||||||
GObject.Value(Gimp.ObjectArray,
|
GObject.Value(Gimp.ObjectArray,
|
||||||
Gimp.ObjectArray.new(Gimp.Drawable, [], False)),
|
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()
|
self.stroke_ids = self.path.get_strokes()
|
||||||
|
|
||||||
# A path may contain several strokes. If so lets throw away a stroke that
|
# A path may contain several strokes. If so lets throw away a stroke that
|
||||||
|
|
Loading…
Reference in New Issue