From 7741bd0a3c15e3e5dc13491ce5d3443fbd0bf4a5 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 4 Dec 2012 03:32:26 +0100 Subject: [PATCH] Added an emblem for character and block devices --- src/vfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vfs.c b/src/vfs.c index 5f8c694..d7fe2c7 100644 --- a/src/vfs.c +++ b/src/vfs.c @@ -48,7 +48,9 @@ GdkPixbuf * vfs_mime_icon(Mime * mime, char const * type, struct stat * st, if(pixbuf == NULL) return NULL; /* determine the emblem */ - if(S_ISLNK(st->st_mode)) + if(S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) + emblem = "emblem-system"; + else if(S_ISLNK(st->st_mode)) emblem = "emblem-symbolic-link"; else if((st->st_mode & (S_IRUSR | S_IRGRP | S_IROTH)) == 0) emblem = "emblem-unreadable";