mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
libgimp, pdb, plug-ins: don't skip gimp_*get_*() API from GObject Introspection anymore.
The original reason to skip these was because the new _list_ API were
introspected basically to a similar function signature, except with a
useless return value, at least in pygobject binding where the list size
was also returned.
Though it seems that in fact, only the docstring was wrong. The real
signature was apparently already the same.
See: https://gitlab.gnome.org/GNOME/pygobject/-/issues/352
Therefore since the _get_ naming is more consistent compared to other
existing function, let's re-integrate the _get_ functions for array of
items or images.
This basically reverts commit 15ec254148
.
This commit is contained in:
parent
38946716f2
commit
8b6d90700a
9 changed files with 17 additions and 33 deletions
|
@ -383,7 +383,7 @@ class SelectionToPath:
|
|||
config.set_property('image', self.image)
|
||||
result = proc.run(config)
|
||||
|
||||
self.path = self.image.list_vectors()[0]
|
||||
self.path = self.image.get_vectors()[0]
|
||||
self.stroke_ids = self.path.get_strokes()
|
||||
|
||||
# A path may contain several strokes. If so lets throw away a stroke that
|
||||
|
@ -1871,7 +1871,7 @@ class SpyroWindow():
|
|||
shelf_parameters(self.p)
|
||||
|
||||
if self.p.save_option == SAVE_AS_NEW_LAYER:
|
||||
if self.spyro_layer in self.img.list_layers():
|
||||
if self.spyro_layer in self.img.get_layers():
|
||||
self.img.active_layer = self.spyro_layer
|
||||
|
||||
# If we are in the middle of incremental draw, we want to complete it, and only then to exit.
|
||||
|
@ -1892,7 +1892,7 @@ class SpyroWindow():
|
|||
# If there is an incremental drawing taking place, lets stop it.
|
||||
self.clear_idle_task()
|
||||
|
||||
if self.spyro_layer in self.img.list_layers():
|
||||
if self.spyro_layer in self.img.get_layers():
|
||||
self.img.remove_layer(self.spyro_layer)
|
||||
self.img.active_layer = self.active_layer
|
||||
|
||||
|
@ -1926,7 +1926,7 @@ class SpyroWindow():
|
|||
|
||||
# We want to delete the temporary layer, but as a precaution, lets ask first,
|
||||
# maybe it was already deleted by the user.
|
||||
if self.spyro_layer in self.img.list_layers():
|
||||
if self.spyro_layer in self.img.get_layers():
|
||||
self.img.remove_layer(self.spyro_layer)
|
||||
Gimp.displays_flush()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue