[Gimp-developer] Discrepancies in the Python API between 2.6 and 2.8
- From: Ofnuts <ofnuts laposte net>
- To: "gimp-developer-list gnome org" <gimp-developer-list gnome org>
- Subject: [Gimp-developer] Discrepancies in the Python API between 2.6 and 2.8
- Date: Wed, 21 Nov 2012 01:28:27 +0100
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?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]