RSS/Atom feed Twitter
Site is read-only, email is disabled

Discrepancies in the Python API between 2.6 and 2.8

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Discrepancies in the Python API between 2.6 and 2.8 Ofnuts 21 Nov 00:28
Ofnuts
2012-11-21 00:28:27 UTC (over 12 years ago)

Discrepancies in the Python API between 2.6 and 2.8

Warning: first off, due to a rather ancient Ubuntu version, I'm not really testing things with 2.8 but with a home-built 2.7.2 (going beyond that causes a dependencies avalanche)...

This said, a script of mine out in the Internet wilderness is reported as failing on 2.8. When I run it on my 2.7.2, I find that;

layer=image.layers[0] pdb.gimp_drawable_is_text_layer(layer)

elicits a "wrong parameter type" while

pdb.gimp_drawable_is_text_layer(layer.ID)

works (gimp_item_is_text_layer() has the same problem). In 2.6 all the PDB procedures take objects and not integer IDs, so is this a voluntary change?

Next, if the layer is indeed a text layer;

pdb.gimp_text_layer_get_text(layer)

returns None despite the layer having text.

Are these known problems? Are they already fixed in 2.8? Or should I file a report on Bugzilla?