--- old-nautilus/libnautilus-private/nautilus-icon-factory.c	2006-12-27 22:13:34.000000000 +0000
+++ new-nautilus/libnautilus-private/nautilus-icon-factory.c	2006-12-27 22:13:34.000000000 +0000
@@ -152,8 +152,6 @@
         guint sweep_timer;
 
 	CacheIcon *fallback_icon;
-	GHashTable *image_mime_types;
-
 } NautilusIconFactory;
 
 #define NAUTILUS_ICON_FACTORY(obj) \
@@ -341,14 +339,6 @@
 nautilus_icon_factory_instance_init (NautilusIconFactory *factory)
 {
 	GdkPixbuf *pixbuf;
-	guint i;
-	static const char *types [] = {
-		"image/x-bmp", "image/x-ico", "image/jpeg", "image/gif",
-		"image/png", "image/pnm", "image/ras", "image/tga",
-		"image/tiff", "image/wbmp", "image/bmp", "image/x-xbitmap",
-		"image/x-xpixmap"
-        };
-
 	
         factory->icon_cache = g_hash_table_new_full (cache_key_hash,
 						     cache_key_equal,
@@ -382,13 +372,6 @@
 	factory->fallback_icon = cache_icon_new (pixbuf, NULL, 1.0, 1.0);
 
 	g_object_unref(pixbuf);
-
-	factory->image_mime_types = g_hash_table_new (g_str_hash, g_str_equal);
-	for (i = 0; i < G_N_ELEMENTS (types); i++) {
-		g_hash_table_insert (factory->image_mime_types,
-				     (gpointer) types [i],
-				     GUINT_TO_POINTER (1));
-	}
 }
 
 static void
@@ -696,11 +679,6 @@
 		cache_icon_unref (factory->fallback_icon);
 	}
 
-	if (factory->image_mime_types) {
-		g_hash_table_destroy (factory->image_mime_types);
-		factory->image_mime_types = NULL;
-	}
-	
 	EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
 }
 
@@ -782,15 +760,10 @@
 static gboolean
 mimetype_limited_by_size (const char *mime_type)
 {
-	NautilusIconFactory *factory;
-
-	factory = get_icon_factory();
-
-        if (g_hash_table_lookup (factory->image_mime_types, mime_type)) {
-                return TRUE;
-	}
-
-        return FALSE;
+   if (strncmp(mime_type,"text",4)==0)
+       return FALSE;
+   else	   
+       return TRUE;
 }
 
 static gboolean

