[Nautilus-list] Fixed the icon flashing thing



OK, this small patch to fm-icon-view.c (on top of my last patch to the
RH branch) should fix the "flashing the bad desktop icons" problem,
but tt may slow down directory loading a bit.


Index: fm-icon-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-icon-view.c,v
retrieving revision 1.208.2.7
diff -u -r1.208.2.7 fm-icon-view.c
--- fm-icon-view.c	2001/08/13 22:25:30	1.208.2.7
+++ fm-icon-view.c	2001/08/19 00:29:16
@@ -540,7 +540,8 @@
 		nautilus_icon_container_reset_scroll_region (get_icon_container (icon_view));
 	}
 
-	if (nautilus_icon_container_add (get_icon_container (icon_view),
+	if (nautilus_icon_factory_is_icon_ready_for_file (file) &&
+	    nautilus_icon_container_add (get_icon_container (icon_view),
 					 NAUTILUS_ICON_CONTAINER_ICON_DATA (file))) {
 		nautilus_file_ref (file);
 	}
@@ -561,6 +562,10 @@
 		if (removed) {
 			nautilus_file_unref (file);
 		}
+	} else if (nautilus_icon_factory_is_icon_ready_for_file (file) &&
+		    nautilus_icon_container_add (get_icon_container (FM_ICON_VIEW (view)),
+						 NAUTILUS_ICON_CONTAINER_ICON_DATA (file))) {
+		nautilus_file_ref (file);
 	} else {
 		nautilus_icon_container_request_update
 			(get_icon_container (FM_ICON_VIEW (view)),




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