summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-02-27 17:07:55 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-02-27 17:07:55 +0000
commit861e32ab487b13f596a91601d3b7ae395d030db8 (patch)
treeb22f569e808c9dced2d042288092f5e1e4e42003 /src
parentb5c48ce3111936d9301ed3c969b8dc884f64b0ad (diff)
downloadnautilus-861e32ab487b13f596a91601d3b7ae395d030db8.tar.gz
Use lazy positioning for volumes only, not all desktop file icons, as this
2006-02-27 Alexander Larsson <alexl@redhat.com> * src/file-manager/fm-icon-view.c (fm_icon_view_add_file): Use lazy positioning for volumes only, not all desktop file icons, as this can cause icons to move around, and its mainly required for removable volumes anyway.
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-icon-view.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 0a2981d52..a52e80605 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -539,9 +539,14 @@ fm_icon_view_add_file (FMDirectoryView *view, NautilusFile *file, NautilusDirect
nautilus_icon_container_reset_scroll_region (icon_container);
}
+ /* For volumes (i.e. cdrom icon) we use lazy positioning so that when
+ * an old cdrom gets re-mounted in a place that now has another
+ * icon we don't overlap that one. We don't do this in general though,
+ * as it can cause icons moving around.
+ */
if (nautilus_icon_container_add (icon_container,
NAUTILUS_ICON_CONTAINER_ICON_DATA (file),
- NAUTILUS_IS_DESKTOP_ICON_FILE (file))) {
+ nautilus_file_has_volume (file))) {
nautilus_file_ref (file);
}
}