[Kazehakase-cvs] CVS update: kazehakase/src/prefs_ui

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Sun Dec 3 11:17:41 JST 2006


Index: kazehakase/src/prefs_ui/prefs_history.c
diff -u kazehakase/src/prefs_ui/prefs_history.c:1.10 kazehakase/src/prefs_ui/prefs_history.c:1.11
--- kazehakase/src/prefs_ui/prefs_history.c:1.10	Thu Feb 23 22:30:34 2006
+++ kazehakase/src/prefs_ui/prefs_history.c	Sun Dec  3 11:17:41 2006
@@ -26,7 +26,7 @@
 #include "kazehakase.h"
 #include "utils/gtk-utils.h"
 #if USE_HYPERESTRAIER
-#	include "utils/estsearch.h"
+#	include "kz-search.h"
 #elif USE_RAST
 #	include "utils/rast-search.h"
 #endif
@@ -102,11 +102,17 @@
 {
 	GPid pid;
 	
+#if USE_HYPERESTRAIER
+	KzSearch *search = kz_search_get_instance("est");
 	gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 
-#if USE_HYPERESTRAIER
-	pid = estsearch_optimize_index();
+	if (search)
+	{
+		pid = kz_search_optimize_index(search);
+		g_object_unref(search);
+	}
 #elif USE_RAST
+	gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 	pid = rast_optimize_index();
 #endif
 	g_child_watch_add(pid,


More information about the Kazehakase-cvs mailing list
Back to archive index