Assign icons to documents, not filetypes

Another solution for correct icons of header files. Did not find simple mime type detection for file, but document.c already uses gio.h.

Pros: now showing exactly same icons as file manager.
Cons: may show wrong icon depending on icon theme/OS?