GNOME Bugzilla – Bug 166650
Error in python plug-ins
Last modified: 2008-01-15 12:47:26 UTC
Start a Gimp which includes python-fu. Execute Xtns/Python-Fu/Test/Sphere. (Probably opening another image is also OK). Now close the image such that no images are open. The menu Xtns/Python-Fu/Test/Sphereis now grayed out as are the Python-Fu Console and PDB Browser. The solution is simple: In sphere.py, gimpcons.py and pdbbrowse.py change the 8th parameter from "RGB*, GRAY*, INDEXED*" or "*" to the empty string "".
"RGB*, GRAY*, INDEXED*" and "*" should be equivalent to ""
On a related note, Xtns/Python-Fu/Test/Sphere should probably not be installed in a stable release (same for the respective Script-Fu script).
Please ignore comment #1, it's complete bullshit. You are of course right, the script should always be available and thus should use the empty string for the image-type.
Committed to both branches: 2005-02-08 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/plug-ins/sphere.py * plug-ins/pygimp/plug-ins/gimpcons.py * plug-ins/pygimp/plug-ins/pdbbrowse.py: Just leave imagetypes empty, since we don't operate on existing images here. Fixes bug #166650.