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 690722 - GTK+ filechooser path entry "edit" icon is fuzzy
GTK+ filechooser path entry "edit" icon is fuzzy
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: [obsolete] stock-icons
3.6.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
: 691644 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-12-25 22:56 UTC by Jean-François Fortin Tam
Modified: 2014-04-28 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
200% screenshot (14.25 KB, image/png)
2012-12-25 22:56 UTC, Jean-François Fortin Tam
  Details
glade file to compare "gtk-edit" to various other icons (14.26 KB, application/x-glade)
2013-06-18 18:02 UTC, Jean-François Fortin Tam
  Details
screenshot comparing "gtk-edit" with other icons, in various sizes (13.59 KB, image/png)
2013-06-18 18:04 UTC, Jean-François Fortin Tam
  Details
proposed patch (18.85 KB, patch)
2013-06-18 18:15 UTC, Jean-François Fortin Tam
none Details | Review

Description Jean-François Fortin Tam 2012-12-25 22:56:17 UTC
Created attachment 232224 [details]
200% screenshot

As the attached screenshot shows, the "edit" icon used in the togglebutton on the upper-left corner of the open filechooser is not sharp/pixel-perfect.

This can be caused either by the wrong icon size being set on that togglebutton widget or by the icon file itself having been designed with the wrong canvas size.

I tried looking for that icon file but couldn't find it, so if you can tell me where it is I could provide a modified version if the icon is the culprit.
Comment 1 Jean-François Fortin Tam 2012-12-25 22:57:48 UTC
Another possibility is that the icon is of the correct size, but that it is vectorial without being aligned to the pixel grid. If that's the case, point me to it and I will offer a fixed version.
Comment 2 Andreas Nilsson 2013-01-28 02:00:28 UTC
*** Bug 691644 has been marked as a duplicate of this bug. ***
Comment 3 Gilles Reyna 2013-02-04 21:04:51 UTC
Hi, although I couldn't reproduce it, I found that the 16x16 gtk-edit.png is much more blurry than other stock items of the same size. The icon can be found under /gtk/stock-icons/16/ in the source. 24x24 version looks fine, though
Comment 4 Timothy Arceri 2013-06-17 00:30:24 UTC
Are you still able to reproduce this in a latest version of GTK? The icons dont seem to have changed since 2007 so I doubt they are the cause if others cant reproduce. Also just to get a little more information what application was used to open the filechooser? Was it a GTK 2 or GTK 3 application?
Comment 5 Jean-François Fortin Tam 2013-06-17 21:15:52 UTC
Timothy: still reproducible in GTK 3.8 with Gedit's "open file" chooser.
Comment 6 Jean-François Fortin Tam 2013-06-17 21:25:27 UTC
Additional clues: the icon used by the file chooser is clearly the 24x24px version (as you can see the line near the lower tip of the pencil)... however, why is it that the folder icon (a little bit to its right) is the 16x16 version (measured with GIMP)? Is GTK trying to shoehorn the 24x24 version of gtk-edit into a 16x16 space?


https://git.gnome.org/browse/gtk+/plain/gtk/stock-icons/24/gtk-edit.png
https://git.gnome.org/browse/gtk+/plain/gtk/stock-icons/16/gtk-edit.png
Comment 7 Jean-François Fortin Tam 2013-06-17 21:29:25 UTC
...and I should note that upon inspection of the 24x24 and 16x16 gtk-edit icons in Inkscape, they are perfectly aligned to the pixel grid (except the edges of the "text" lines in the 16x16 icon, but maybe that's intentional), so it's definitely not the icon's fault but probably gtk doing something odd.
Comment 8 Jean-François Fortin Tam 2013-06-18 18:02:30 UTC
Created attachment 247194 [details]
glade file to compare "gtk-edit" to various other icons

Comparing with other icons in various situations, it might turn out to be a problem with the icon after all...
Comment 9 Jean-François Fortin Tam 2013-06-18 18:04:13 UTC
Created attachment 247195 [details]
screenshot comparing "gtk-edit" with other icons, in various sizes

This demonstrates that something is wrong with the gtk-edit icon in particular, as other icon names are unaffected. Red guidelines were added with GIMP, revealing that the gtk-edit icon uses the 24x24 grid too aggressively and does not natively fit in a 22x22 space, unlike other icons that were compared.
Comment 10 Jean-François Fortin Tam 2013-06-18 18:15:14 UTC
Created attachment 247197 [details] [review]
proposed patch

This patch makes the 24x24 icon files pixel-perfect while having an empty 1px "border" so it can be cropped to 22x22 (I suspect this is what GTK is doing) for the automatic size required by the buttons by default.

Beware of bugs in the above patch; I have only proved it correct, not tried it.

At the same time, regardless of the successfulness of this patch to fixing the bug at hand, it is a graphical improvement to the icon that should be able to stand on its own.
Comment 11 Timothy Arceri 2013-06-24 21:17:38 UTC
I'm not sure who maintains the icons you might like to ask on the gtk mailing list for a review/commit of your patch otherwise it could be missed.
Comment 12 Matthias Clasen 2014-04-28 20:26:46 UTC
We don't show an edit icon anymore