Re: Wrong icons on nautilus-gio



Il giorno mer, 09/01/2008 alle 12.54 +0100, Mattias Eriksson ha scritto:
> 
> ons 2008-01-09 klockan 12:36 +0100 skrev Luca Ferretti: 
> 
> > * PDF and PS files are using regular file icon. Why not
> >         "x-office-document"? (of course when you disable the preview)
> I think there should be another icon indicating that this is not an
> editable file, if it is an office icon I whould assume I can edit it.
> (I know that you can edit pdf:s but the purpose with a pdf is to have
> it in a print ready format). 

The Icon Naming Spec[1] provides names for common icons useful on a
desktop environment, plus guidelines[2] to create naming compliant
icons: extra icons should fallback to existing icons if your current
theme don't provide the extra icon (but provides the standard one). 

This means that a named icon for PDF files should use
"x-office-document-pdf" as name: if your current theme has this icon,
then the application should use it, if not should use the
"x-office-document" from current theme (to keep visual coherence, for
instance in high contrast themes you don't need details); if both are
missing then should search in "parent" theme.

GTK+ supports this fallback[3], while I'm not sure it fully works with
mimetypes.

However currently we have no extra icons (gnome-icon-theme will include
only icons defined in Icon Naming Spec, extra icons packages will come
when all standard icons will be ready), so by now use the simple
"x-office-document" should be the best solution. Note also the stable
Nautilus is yet using this icon, or at lease a symlink to it.

[1] http://www.freedesktop.org/wiki/Specifications/icon-naming-spec
[2] http://standards.freedesktop.org/icon-naming-spec/latest/ar01s03.html
[3] http://bugzilla.gnome.org/show_bug.cgi?id=396901



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]