[nautilus] Use the mount icon as an emblem in the views.



commit 88781dae75003996accbf521a2d3e405d7d4fd14
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat May 8 14:40:27 2010 +0200

    Use the mount icon as an emblem in the views.

 src/file-manager/fm-icon-container.c |    2 +-
 src/file-manager/fm-list-model.c     |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/file-manager/fm-icon-container.c b/src/file-manager/fm-icon-container.c
index f15a803..de6cc8b 100644
--- a/src/file-manager/fm-icon-container.c
+++ b/src/file-manager/fm-icon-container.c
@@ -95,7 +95,7 @@ fm_icon_container_get_icon_images (NautilusIconContainer *container,
 
 	*has_window_open = nautilus_file_has_open_window (file);
 
-	flags = 0;
+	flags = NAUTILUS_FILE_ICON_FLAGS_USE_MOUNT_ICON_AS_EMBLEM;
 	if (!fm_icon_view_is_compact (icon_view) ||
 	    nautilus_icon_container_get_zoom_level (container) > NAUTILUS_ZOOM_LEVEL_STANDARD) {
 		flags |= NAUTILUS_FILE_ICON_FLAGS_USE_THUMBNAILS;
diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c
index ada1a3e..5e235fb 100644
--- a/src/file-manager/fm-list-model.c
+++ b/src/file-manager/fm-list-model.c
@@ -296,7 +296,8 @@ fm_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int column
 			icon_size = nautilus_get_icon_size_for_zoom_level (zoom_level);
 
 			flags = NAUTILUS_FILE_ICON_FLAGS_USE_THUMBNAILS |
-				NAUTILUS_FILE_ICON_FLAGS_FORCE_THUMBNAIL_SIZE;
+				NAUTILUS_FILE_ICON_FLAGS_FORCE_THUMBNAIL_SIZE |
+				NAUTILUS_FILE_ICON_FLAGS_USE_MOUNT_ICON_AS_EMBLEM;
 			if (model->details->drag_view != NULL) {
 				GtkTreePath *path_a, *path_b;
 				



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