GNOME Bugzilla – Bug 530549
Cannot add new emblems in Nautilus
Last modified: 2008-04-30 09:30:56 UTC
This bug has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/nautilus/+bug/224162 "Open Nautilus. Open up backgrounds and emblems dialog. Choose emblems. Add a new emblem. Type a name for the Emblem. Navigate to the directory containing your emblem picture file. Select the new emblem and a message will pop-up saying that you have an invalid picture file. Any of the existing files which are emblems already will also fail. I tried both PNG or SVG." Thanks,
Created attachment 110149 [details] [review] trivial patch This happened because we were unreffing the GFileInfo before checking the mime type, invalidating the const mime_type string. I committed this trivial patch both to trunk and gnome-2-22.
Closing as FIXED. 2008-04-30 Cosimo Cecchi <cosimoc@gnome.org> * src/nautilus-property-browser.c: (ensure_file_is_image): Do not unref the file info before checking the mime type, otherwise the mime_type string will be invalidated. (#530549).