--- pdf/ev-poppler.cc.old	2006-06-30 12:32:15.000000000 +0200
+++ pdf/ev-poppler.cc	2006-06-30 12:35:52.000000000 +0200
@@ -43,6 +43,7 @@
 	guint idle;
 	int start_page;
 	int search_page;
+	gboolean case_sensitive;
 } PdfDocumentSearch;
 
 struct _PdfDocumentClass
@@ -1187,7 +1188,7 @@
 					  search->search_page);
 
 	ev_document_doc_mutex_lock ();
-	matches = poppler_page_find_text (page, search->text);
+	matches = poppler_page_find_text (page, search->text, search->case_sensitive);
 	ev_document_doc_mutex_unlock ();
 
 	g_object_unref (page);
@@ -1216,7 +1217,8 @@
 static PdfDocumentSearch *
 pdf_document_search_new (PdfDocument *pdf_document,
 			 int          start_page,
-			 const char  *text)
+			 const char  *text,
+			 gboolean case_sensitive)
 {
 	PdfDocumentSearch *search;
 	int n_pages;
@@ -1233,6 +1235,7 @@
 	}
 
         search->document = pdf_document;
+		search->case_sensitive = case_sensitive;
 
         /* We add at low priority so the progress bar repaints */
         search->idle = g_idle_add_full (G_PRIORITY_LOW,
@@ -1268,7 +1271,8 @@
 
         pdf_document->search = pdf_document_search_new (pdf_document,
 							page,
-							search_string);
+							search_string,
+							case_sensitive);
 }
 
 int
