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 626338 - metadata::custom-icon should allow icon names
metadata::custom-icon should allow icon names
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-07 21:13 UTC by Hylke Bons
Modified: 2011-05-25 14:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hylke Bons 2010-08-07 21:13:17 UTC
In my application I write to the metadata::custom-icon gvfs property to set my own icon to a folder. This is done by passing a path to an image file. This works well, but when you zoom the nautilus view in or out the icon will be stretched and loses its crispyness.

This is why I'd like to suggest allowing to set icon names to the metadata::custom-icon property, so Nautilus can look up the correct icon size from the icon theme and use that. It seems that this is already done for special xdg folders like Music and Downloads.
Comment 1 Hylke Bons 2011-05-25 01:10:21 UTC
This happens in the new Nautilus sidebar too.
Comment 2 Cosimo Cecchi 2011-05-25 14:50:03 UTC
I now pushed to git master a patch that adds the metadata::custom-icon-name attribute, which allows you to specify an icon name from the theme for the custom icon.
Note that if both metadata::custom-icon and metadata::custom-icon-name are present, metadata::custom-icon has priority.