Le 14/10/2010 16:36, Colomban Wendling a écrit :
Hi,
I realized that in the "documents" sidebar each and every files have an icon, but they all have the same, no matter what. I had a little time and I decided to play a bit with the idea of having file-type based icons.
Such icons could be displayed at a few places:
- In the Documents sidebar: there is already icons and it would
probably ease to find a particular item (if different filetypes are mixed, of course). Anyway I think it's better to have the "right" icons rather than always using the same. (capture joined)
[...]
And finally, the current points that are problematic: When sidebar_openfiles_add() is called, it's very likely that the document's filetype isn't set yet, so no icon (or a default one). It only appears when an opened file is renamed, since it updates the entry and the filetype is set at this time. Not sure how to fix this, but I haven't investigated yet.
After a small investigation I managed to find a quite simple way, so there's a patch! Needs the 0001-Add-filetype-icon.patch patch (in another mail from this thread), there's 0001-Add-filetype-specific-icon-to-the-document-list-side.patch joined.
Regards, Colomban