GNOME Bugzilla – Bug 343540
Emblems get cut when scaled to a zoom >= 150% (refresh issue)
Last modified: 2010-04-17 11:18:52 UTC
That bug has been described on https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/46846 "If I set my default zoom level greater than 150%, I see my emblems (which are located on the right upper side of the icons) cut on the right side. So half of the emblem is hidden/(cut off). Zooming a level up or down, the issue vanishes. But on each opening of a folder, the emblems get cut. That's awful to see! :-/ ... > Thanks for your bug. What version of Ubuntu do you use? What icon theme? Do you use the compact mode? Text behind icons or not? Could you make a screenshot of the issue? ... I installed dapper (may 22 release), I switched several times my icon theme from osx to nuoveXT, and then back to default (human); but I see the bug with all of them. I installed dapper also on another pc, it has the same problem. ... > is the issue fixed by scrolling too? ... The issue doesn't remain after I scroll up and down in order to "hide" the icon for a moment under the "controls". (I hope you understand what I mean) ... http://librarian.launchpad.net/3007415/scrshot.png screenshot of the bug"
I can't believe such an old bug hasn't caught any attention from developers yet... This still happens on GNOME 2.21.91!
*** Bug 570450 has been marked as a duplicate of this bug. ***
*** Bug 521161 has been marked as a duplicate of this bug. ***
This still happens in gnome 2.26.1 (Ubuntu 9.04)...
*** Bug 598234 has been marked as a duplicate of this bug. ***
Created attachment 157312 [details] [review] Fix the problem where emblems gets cut I'm not 100% sure why this is working because I don't know the complete purpose of pixels_per_unit (and I don't have time to investigate). So alex or anyone with better knowledge of the nautilus source code might know _why_ this is working or if this is the best way to handle the issue (?)
Review of attachment 157312 [details] [review]: Probably not working with attach_points
Created attachment 157401 [details] [review] Use a different unscaled icon_rect for emblems when calculating bounds
OK, alex, I've now tried this patched with attach points and this works both with and without the patch. What this patch fixes is the automatic attach points. I think this is because of icon_info_ensure_scale_and_pixbuf() in gtk_icon_info_get_attach_points().
pushed
*** Bug 559433 has been marked as a duplicate of this bug. ***