Commit 861e32ab authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

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.
parent b5c48ce3
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.
2006-02-27 Alexander Larsson <alexl@redhat.com>
* src/nautilus-navigation-window.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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment