[nautilus] Prefer mount icons as window icons (#613733).
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Prefer mount icons as window icons (#613733).
- Date: Sat, 8 May 2010 12:44:55 +0000 (UTC)
commit 7bfc3c6a7d22e1091f7985377dabd8581e1dfeac
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon May 3 18:05:50 2010 +0200
Prefer mount icons as window icons (#613733).
src/nautilus-navigation-window.c | 4 +++-
src/nautilus-spatial-window.c | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c
index d92e711..269d88b 100644
--- a/src/nautilus-navigation-window.c
+++ b/src/nautilus-navigation-window.c
@@ -744,7 +744,9 @@ static NautilusIconInfo *
real_get_icon (NautilusWindow *window,
NautilusWindowSlot *slot)
{
- return nautilus_icon_info_lookup_from_name ("system-file-manager", 48);
+ return nautilus_file_get_icon (slot->viewed_file, 48,
+ NAUTILUS_FILE_ICON_FLAGS_IGNORE_VISITING |
+ NAUTILUS_FILE_ICON_FLAGS_USE_MOUNT_ICON);
}
static void
diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c
index d68c6ac..8d9d2f2 100644
--- a/src/nautilus-spatial-window.c
+++ b/src/nautilus-spatial-window.c
@@ -381,7 +381,8 @@ real_get_icon (NautilusWindow *window,
NautilusWindowSlot *slot)
{
return nautilus_file_get_icon (slot->viewed_file, 48,
- NAUTILUS_FILE_ICON_FLAGS_IGNORE_VISITING);
+ NAUTILUS_FILE_ICON_FLAGS_IGNORE_VISITING |
+ NAUTILUS_FILE_ICON_FLAGS_USE_MOUNT_ICON);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]