GNOME Bugzilla – Bug 626474
use standard icon names for stock icons
Last modified: 2010-10-24 10:11:32 UTC
See http://live.gnome.org/GtkNamingSpecInvestigation for some investigation into how stock icons map onto standard icon names.
Created attachment 167468 [details] [review] a patch This patch makes use of the existing mapping from stock ids to icon names (which was basically a 1-1 mapping so far), and makes it map to standard icon names where they exist. There are still some non-standard icons left afterwards, and I just left them as they are now: gtk-dnd gtk-dnd-multiple gtk-color-picker gtk-apply gtk-cancel gtk-no gtk-ok gtk-yes gtk-convert gtk-select-color gtk-select-font gtk-orientation-portrait gtk-orientation-landscape gtk-orientation-reverse-portrait gtk-orientation-reverse-landscape gtk-page-setup gtk-undelete gtk-undelete gtk-connect gtk-disconnect gtk-edit gtk-caps-lock-warning gtk-index For directional variants of icons such as go-back, the patch first looks for gtk-back-ltr/-rtl, and then at gtk-back. One set of icons where I have deviated from the 1-1 mapping for non-standard icon names is printers: The patch uses printer, printer-error, printer-warning, printer-info instead of gtk-print, gtk-print-error, gtk-print-warning, gtk-print-report. A second patch will be needed to make the print backends use printer-... icon names. This will help separate the action (document-print) from the device (printer-...).
Created attachment 167469 [details] [review] print backend patch Make the print backends use standard icon names for printer icons.
Sweet! Thanks :)
Committed to both 2.90 and 2.22
Can you please provide a way to keep old-named icons, at least for 2.2x branch? Maybe as a configure parameter? Applications like Firefox still uses those icons, and people issue bugs about that: https://bugzilla.gnome.org/show_bug.cgi?id=629878