After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 158392 - PF_LAYER and others will fail in an unsaved image.
PF_LAYER and others will fail in an unsaved image.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Gimp-Python
git master
Other All
: Urgent normal
: ---
Assigned To: Manish Singh
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-15 20:47 UTC by Joao S. O. Bueno
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixing issue (2.08 KB, patch)
2004-11-15 20:50 UTC, Joao S. O. Bueno
none Details | Review

Description Joao S. O. Bueno 2004-11-15 20:47:14 UTC
Hi, 
The widgets for imputing images, layers, drawables and channels in python-fu 
scripts rely on combining the img.filename property with another string. 
 
However, img.filename is "None" if the iamge is still unsaved. That means that 
any python-fu that uses one of these input types will not work on a newly 
created image.
Comment 1 Joao S. O. Bueno 2004-11-15 20:50:53 UTC
Created attachment 33820 [details] [review]
Patch fixing issue

Proposed patch fixes issue by using "img.name" if there is no filename on the
image.
Comment 2 Manish Singh 2004-11-17 03:11:32 UTC
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpui.py: Use img.name if filename is not
        available (bug #158392). Patch by Joao S. O. Bueno.