Description of problem: When picking an image for any plugin, only images with lower-case extension get listed. Version-Release number of selected component (if applicable): 0.8.2-21 How reproducible: Always Steps to Reproduce: 1. Place say test.png, test.PNG and test.Png in some folder 2. Open CompizConfig, under any plugin that allows you to choose some image click browse 3. Only test.png appears in the folder. Actual results: Expected results: Additional info:
I am unable to reproduce the problem here. http://leigh123linux.fedorapeople.org/pub/Screenshot.png
Created attachment 382561 [details] Printscreen of the issue That's funny... I am able to reproduce the issue no matter which folder or which plugin :s
Just to quickly come back to this issue, it appears that gtk.FileFilter::add_pattern() is case sensitive (which actually looks like a bug to me). Anyhow, I'd suggest the following changes to ccm/Widgets.py @@ -1233,6 +1233,9 @@ class FileButton (gtk.Button): filter = gtk.FileFilter () if self._image: filter.set_name (_("Images")) + filter.add_mime_type ("image/png") + filter.add_mime_type ("image/jpeg") + filter.add_mime_type ("image/svg+xml") filter.add_pattern ("*.png") filter.add_pattern ("*.jpg") filter.add_pattern ("*.jpeg") which should make it more robust.
ccsm-0.8.4-2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/ccsm-0.8.4-2.fc13
ccsm-0.8.2-4.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/ccsm-0.8.2-4.fc12
(In reply to comment #3) > Just to quickly come back to this issue, it appears that > gtk.FileFilter::add_pattern() is case sensitive (which actually looks like a > bug to me). Anyhow, I'd suggest the following changes to > ccm/Widgets.py > > @@ -1233,6 +1233,9 @@ class FileButton (gtk.Button): > filter = gtk.FileFilter () > if self._image: > filter.set_name (_("Images")) > + filter.add_mime_type ("image/png") > + filter.add_mime_type ("image/jpeg") > + filter.add_mime_type ("image/svg+xml") > filter.add_pattern ("*.png") > filter.add_pattern ("*.jpg") > filter.add_pattern ("*.jpeg") > > which should make it more robust. Thank you for posting the patch.
ccsm-0.8.4-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
ccsm-0.8.2-4.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.