[Commits] summary_search.c 1.15.2.72 1.15.2.73

colin at claws-mail.org colin at claws-mail.org
Wed Sep 26 14:04:52 CEST 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv4496/src

Modified Files:
      Tag: gtk2
	summary_search.c 
Log Message:
2012-09-26 [colin]	3.8.1cvs77

	* src/summary_search.c
		Fix unresponsive stop button
	* src/gtk/quicksearch.c
		Fix busy cursor

Index: summary_search.c
===================================================================
RCS file: /home/claws-mail/claws/src/summary_search.c,v
retrieving revision 1.15.2.72
retrieving revision 1.15.2.73
diff -u -d -r1.15.2.72 -r1.15.2.73
--- summary_search.c	26 Sep 2012 08:54:05 -0000	1.15.2.72
+++ summary_search.c	26 Sep 2012 12:04:49 -0000	1.15.2.73
@@ -535,6 +535,16 @@
 		return FALSE;
 }
 
+static gboolean summary_search_progress_cb(gpointer data, guint at, guint matched, guint total)
+{
+	if (!search_window.is_searching) {
+		search_window.matcher_is_outdated = TRUE;
+		return FALSE;
+	}
+
+	return summaryview_search_root_progress(search_window.summaryview, at, matched, total);
+}
+
 static gboolean summary_search_prepare_matcher()
 {
 	gboolean adv_search;
@@ -553,8 +563,7 @@
 		search_window.advsearch = advsearch_new();
 		advsearch_set_on_error_cb(search_window.advsearch, NULL, NULL); /* TODO */
 		advsearch_set_on_progress_cb(search_window.advsearch, 
-			summaryview_search_root_progress, 
-			search_window.summaryview);
+			summary_search_progress_cb, NULL);
 	}
 
 	adv_search = gtk_toggle_button_get_active



More information about the Commits mailing list