Index: nautilus-2.30.1/libnautilus-private/nautilus-search-engine-simple.c 
===================================================================
--- nautilus-2.30.1.orig/libnautilus-private/nautilus-search-engine-simple.c	2009-04-20 12:57:19.000000000 +0200
+++ nautilus-2.30.1/libnautilus-private/nautilus-search-engine-simple.c	2010-05-17 23:25:36.608779038 +0200
@@ -23,6 +23,7 @@
 
 #include <config.h>
 #include "nautilus-search-engine-simple.h"
+#include "nautilus-global-preferences.h"
 
 #include <string.h>
 #include <glib.h>
@@ -214,6 +215,7 @@
 	GList *l;
 	const char *id;
 	gboolean visited;
+	gboolean must_show_hidden_files;
 
 	enumerator = g_file_enumerate_children (dir,
 						data->mime_types != NULL ?
@@ -229,8 +231,10 @@
 	}
 
 	while ((info = g_file_enumerator_next_file (enumerator, data->cancellable, NULL)) != NULL) {
-		if (g_file_info_get_is_hidden (info)) {
-			goto next;
+		if (must_show_hidden_files != TRUE) {
+			if (g_file_info_get_is_hidden (info)) {
+				goto next;
+			}
 		}
 		
 		display_name = g_file_info_get_display_name (info);
